Fire Monkey Posted October 2, 2020 Share Posted October 2, 2020 Hi guys. I want when a player do handbrake then players can't Push that vehicle (just players, not other vehicles), I have vehicle system include handbrake and ETC , just need an idea for how to make this 'Anti Vehicle Pushing'? Link to comment
Zorgman Posted October 2, 2020 Share Posted October 2, 2020 You can freeze the vehicle to prevent it being pushed, but I don't think you can make the distinction between players and vehicles pushing it. Link to comment
DiSSGen Posted October 3, 2020 Share Posted October 3, 2020 try it addEventHandler("onClientVehicleCollision", getRootElement(),function (collider,force, bodyPart, x, y, z, nx, ny, nz) if collider and getElementType(collider) == "player" then if not isElementFrozen(source) then if collider ~= source then if not getVehicleOccupant(source,0) then setElementFrozen(source, true) setTimer(setElementFrozen, 1000, 1, source, false) end end end end end) 2 Link to comment
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