Toggle hotwiring
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
This export can be useful when you want the player to not be able to use the hotwiring anymore temporary
exports["vehicles_keys"]:toggleHotwiring(newState)
newState
bool
true
= hotwiring enabled - false
= hotwiring disabled
RegisterNetEvent("vehicle_shop:enteredList", function()
exports["vehicles_keys"]:toggleHotwiring(false)
end)
RegisterNetEvent("vehicle_shop:exitedList", function()
exports["vehicles_keys"]:toggleHotwiring(true)
end)