[HOW TO] Assign ID to spawned cars.
#1

Hello guys.
I dont really know if there is a tutorial about this in the forum already. If there is, send it in a coment.
This is the plot: I want to learn how to give an ID for each vehicle that's spawned.

That's all for now.

TY!
Reply
#2

Let's say that you have some AddStaticVehicle's under OnGameModeInit().

Let's say some Police Cruisers.

Add this to your global defines:
pawn Код:
new pdcar1;
Then go to OnGameModeInit and add a static vehicle:
pawn Код:
pdcar1 = AddStaticVehicle(/*The information*/);
Keep doing this for each /police/ vehicle if you want.
Reply
#3

Lets say that a player buy a car, how i assing a ID to this car?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)