Simple Vehicle Numer Plates
#1

I want to simply add one Vehicle Plate to all of the vehicles,

I load the vehicles from a txt file in scriptfiles

So how can i simply set a number plate to all vehicles?
Reply
#2

Under ONGameModeInit where you have loaded every car do

pawn Код:
for(new i=0;i<MAX_VEHICLES;i++)
        {
            SetVehiclePlate(i, "Plate");
        }
Reply
#3

error 017: undefined symbol "SetVehiclePlate" =/
Reply
#4

I have this:
Код:
	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/whetstone.txt");
	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/bone.txt");
	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/flint.txt");
	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/tierra.txt");
	total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/red_county.txt");
	//CUSTOM
	//total_vehicles_from_files += LoadStaticVehiclesFromFile("vehicles/custom1.txt");
	printf("Total vehicles from files: %d",total_vehicles_from_files);
	for(new i = 1; i < MAX_VEHICLES; i ++)
    {
    SetVehicleNumberPlate(i, "~NUMBERPLATE");
    }
Works 100%, i have it.
Reply
#5

SetVehicleNumberPlate(); Sorry :P
Reply
#6

Thanks, its working now, +rep for the above guy,

Sry Ice it says i can't give you because i did it 2 hours ago already =/
Reply
#7

No problem, REP isnt everything +REP For trying xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)