Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add nitro vehicle functions server side #3951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Proxy-99 wants to merge 12 commits into multitheftauto:master
base: master
Choose a base branch
Loading
from Proxy-99:nitro

Conversation

@Proxy-99
Copy link
Contributor

@Proxy-99 Proxy-99 commented Jan 11, 2025
edited
Loading

Add isVehicleNitroActivated and getVehicleNitroLevel at the server side
closing #3703

Copy link
Member

You forgot to link the pull request with #3703

@tederis tederis added the enhancement New feature or request label Jan 18, 2025
Copy link
Member

Are you still interested in continuing this pull request? @Proxy-99

Proxy-99 reacted with thumbs up emoji

Copy link
Contributor Author

Are you still interested in continuing this pull request? @Proxy-99

I will continue on it by today

Nico8340 reacted with thumbs up emoji

@Proxy-99 Proxy-99 marked this pull request as ready for review February 14, 2025 16:26

bool CVehicle::IsNitroInstalled() const noexcept
{
return this->m_pUpgrades->GetSlotState(8) != 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return m_pUpgrades->GetSlotState(8) != 0;

Comment on lines +1024 to +1027
if (!IsNitroInstalled())
return false;

return m_nitroLevel < 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return IsNitroInstalled() ? m_nitroLevel < 0 : false;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@FileEX FileEX FileEX requested changes

+1 more reviewer

@Nico8340 Nico8340 Nico8340 approved these changes

Reviewers whose approvals may not affect merge requirements

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

enhancement New feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /