• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [Help] load vehicle onto flatbed cmd.
#1
Exclamation 
Hello again, hopefully this is the last time I will need help. So our community is looking to have the ability to load a car onto the flatbed (DFT) and it stay on for towing purposes. Now our base script did have a command for this however those commands do not work and even on the original server that our script was based off of it never worked.



Below I've attatched the pastebin link of what flatbed towing system came with the server, if anyone knows how to repair it and make it work, or where I could find a public released script/filter that can allow us to load and unload vehicles from a flatbed that would be greatly appreciated. any fix will be of course credited in our gamemode.



https://pastebin.com/DZS0pZiR
[Image: Screenshot-2021-01-22-Lone-Bear-Gaming-Coming-Soon.png]
  Reply
#2
What happens after you type /wreck? Does it show any messages in chat?



Also, there's no call for the function AttachTrailerToVehicle. The command /wreck just destroys the vehicle.



You can try changing this part:



SetVehiclePos(closestcar, 0, 0, 0); // Attempted desync fix

DestroyVehicle(closestcar);



With this:



AttachTrailerToVehicle(carid , closestcar);
  Reply


Forum Jump: