Annas Posted May 11, 2015 Posted May 11, 2015 i need a stuff for STAFF TEAM .. when i click "C" Bind , the vehicle stoped in 1sec in it PLACE . (i need it only team named "Staff" can do this ..) Thx.
Walid Posted May 11, 2015 Posted May 11, 2015 i need a stuff for STAFF TEAM ..when i click "C" Bind , the vehicle stoped in 1sec in it PLACE . (i need it only team named "Staff" can do this ..) Thx. use setElementFrozen ()
MTA Team botder Posted May 11, 2015 MTA Team Posted May 11, 2015 You should rather use setElementVelocity and setVehicleTurnVelocity
Walid Posted May 11, 2015 Posted May 11, 2015 it can be like this: function stopVehicle(player) if (getTeamName(getPlayerTeam(player)) == "Staff") then local vehicles = getElementsByType("vehicle") for i , vehicle in pairs (vehicles) do local Freeze = isElementFrozen (vehicle) local newStatus = not Freeze setElementFrozen (vehicle, newStatus ) end end end addCommandHandler("stop", stopVehicle)
Annas Posted May 11, 2015 Author Posted May 11, 2015 shit not work .. i make it CLEINT SIDE = not work SERVER SIDE = Not Work pls help me ..
Castillo Posted May 11, 2015 Posted May 11, 2015 I don't think you can use "/stop", since it's a MTA hard coded command ( for stopping resources ). Change the vehicle to something else, such as "freezevehs".
Walid Posted May 11, 2015 Posted May 11, 2015 :~ not work ..i make it CLEINT SIDE = not work SERVER SIDE = Not Work pls help me .. it's server side code, replace /stop with any other command it's just an example.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now