veichles
#1

how to make veichles
Reply
#2

First you need to goto the position you would like to make cars and(preferably if you want cars be in a car while doing this to make the next steps easier) use the command /save [comment]. That will write the position into a file in your San Andreas Directory called savedpositions.txt. From there providing you did this in a vehicle the majority of the code is done for you, all you have to do is go https://sampwiki.blast.hk/wiki/AddStaticVehicle and find a better understanding on how that itty bit of code does. You can from that page find another page with the model ids to choose from. From there when you have the AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); ready the way you want it then you will go ahead and add it in under OnGameModeInIt. You may also do the /save many times and it will write to a new line so you can do literally 100 cars so you don't have to do them 1 by 1. Also if you are in a vehicle when using /save it will write with the AddStaticVehicle code where as if you are on foot it will AddPlayerClass. Hope that helps and good luck!
Reply
#3

Check this first and then check these links:
- https://sampwiki.blast.hk/wiki/CreateVehicle
- https://sampwiki.blast.hk/wiki/AddStaticVehicle
- https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)