Skip to content

Conversation

Proxy-99
Copy link
Contributor

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

Add isVehicleNitroActivated and getVehicleNitroLevel at the server side
closing #3703

@Nico8340
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
@Nico8340
Copy link
Member

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

@Proxy-99
Copy link
Contributor Author

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

I will continue on it by today

@Proxy-99 Proxy-99 marked this pull request as ready for review February 14, 2025 16:26
@Proxy-99 Proxy-99 requested a review from Nico8340 February 14, 2025 16:33
@Proxy-99 Proxy-99 requested a review from FileEX February 19, 2025 14:07

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
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants