Created
July 6, 2018 08:28
-
-
Save ilya-pirogov/1d81943738ea590a9e079fc1bde4e271 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Citizen.CreztrThread(function() | |
local vehicle | |
while true | |
local newVehicle = GetVehicle(...) | |
if newVehicle ~= vehicle then | |
-- переменная изменилась | |
end | |
-- остальной твой код | |
vehicle = GetVehicle(...) | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment