command /towtruckliftacar
#1

How to make the command /towtruckliftacar

When I write a command /towtruckliftcar
to the Tow Truck, attached to my car which was behind me
limited to 10 meters
Reply
#2

Usually people makes control system to attach a car behind the tow truck. No one uses cmds for that.
Reply
#3

1. Find a vehicle close to the player (using GetClosestVehicle) with a radius of 10.
2. Do some trigonometry if you find it necessary to see if the vehicle is behind the player or heading the same way (approximately).
3. Use AttachTrailerToVehicle to attach the vehicle as a trailer to your player's vehicle.
Reply
#4

Can I do that I did not receive
Reply
#5

up of topic...

EDIT: I tried http://pastebin.com/yN4xtaBt. And not working
Reply
#6

Quote:
Originally Posted by Join7
Посмотреть сообщение
up of topic...

EDIT: I tried http://pastebin.com/yN4xtaBt. And not working
What seems to be the problem?
Reply
#7

The first thing I'd do in that script is replace the old methods with newer ones. The link I gave you uses a native function for calculating distances and is hence faster.

Try something like this: http://pastebin.com/6TgiWFK7
Reply
#8

error 017: undefined symbol "GetVehicleDistanceFromPoint"
Reply
#9

I'm very very sure it is a native function. What server version are you using?
Reply
#10

I put R5 Includes fine

But when I want to lift a car does not work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)