Problem plz help
#1

Okey i am a scripting noob.I am am using larp GM and i want to add some gang cars, if i do addstaticvehicle....I **** everything up i changes all cars id what i have to do more?

Thank you!
Reply
#2

I don't know LA-RP script, but what you'd need to do is add the new vehicle as the absolute last vehicle to be spawned, then go into the part of the script which checks if that's a gang car/faction car (Either OnPlayerEnterVehicle or OnPlayerStateChange) and add that vehicles id to the list of id's, it'll be something like
Код:
if( newcar == 120 || newcar == 300 || etc || etc)
Then just add your car's id at the end
Reply
#3

Ya it will fuck up all ID's etc. I would suggest to make the new cars as far away down you can from others. So the old stay at same ID's. And you'r new come too.
Reply
#4

I want to make cars that everybody can drive not gang/faction cars and as i said i am a scripting noob so try to explaint it better

Sorry for my bad english
Reply
#5

Look for the Debug mode guide in Sa-mp Wiki.
If you want to ad cars that should help.
Reply
#6

Quote:
Originally Posted by waza75
Look for the Debug mode guide in Sa-mp Wiki.
If you want to ad cars that should help.
not in this case,

just goto the bottem of ongamemodeinit and place all your new cars there so they are the last ID's
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)