Hello before starting'll wish a Happy New Year to All.
So I walk demand the following: It is a resource that helps steal cars I do not know the name and I can not find but I know the command to use is this: / hotwire if anyone knows where can I download that would indicate.
The second is a resource for the belt I have one and I can make it work, we have entered into the car and write (/ seatbelt) and we get the belt I want the script beyond that is when we got out of the car seat belt to not exit automatically come out with the same street to let the script here for you guys and see if someone can get as I wanted:
function seatbelton ( player )
local check = isPedInVehicle ( player )
if ( check ) then
local state = ( not getElementData ( player, "seatbelt" ) )
setElementData ( player, "seatbelt", state )
exports.global:sendLocalMeAction ( player, "reaches for their seatbelt and ".. ( state and "buckles it." or "unbuckles." ) )
else
outputChatBox ( "You are not in a car!", player, 255, 0, 0 )
end
end
addCommandHandler ( "seatbelt", seatbelton )
First recall that this resource is not my doing I just modified the text and just want someone who realizes that make him quit automatically when we exit the car.
Thanks.