For the complete documentation index, see llms.txt. This page is also available as Markdown.

Toggle hotwiring

This export can be useful when you want the player to not be able to use the hotwiring anymore temporary

Export

exports["vehicles_keys"]:toggleHotwiring(newState)

Parameters

Name
Data Type
Description

newState

bool

true = hotwiring enabled - false = hotwiring disabled

Example

RegisterNetEvent("vehicle_shop:enteredList", function() 
    exports["vehicles_keys"]:toggleHotwiring(false)
end)

RegisterNetEvent("vehicle_shop:exitedList", function() 
    exports["vehicles_keys"]:toggleHotwiring(true)
end)

Last updated