HandBrake System
#1

Hi, I would like to create a handbrake system for cars. So I would create a script that controls the angle of the car and if it is greater or less than 0, the car begins to fall. The problem is that the function SetPlayerVelocity works only for the vehicle in which there is a player. Is there a way to make moving a vehicle unoccupied?

https://sampwiki.blast.hk/wiki/SetVehicleVelocity

Sorry for my bad english
Reply
#2

PHP код:
for(new iMAX_VEHICLES i++){
if(!
IsPlayerInVehicle(ii)){ // Check if a player is in the vehicle
SetVehicleVelocity(iX,Z);}} // Put your coordinates @ X,Y,Z 
Not sure for it to work.
Reply
#3

SetVehicleVelocity has no affect on un-occupied vehicles

https://sampwiki.blast.hk/wiki/SetVehicleVelocity
Reply
#4

There is no other way to do it, SetVehiclePos would look terrible doe.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)