AddStaticVehicle help
#1

Hello,i was scripting cars system and i wanted to this that way : you can change car IDs with cmd and color but it only changes when the server has been restarted,is there any way that you can change the color and id when the car respawns ?

heres the code after ongamemodeinit

Код:
	AddStaticVehicle(OrgInfo[i][Car1],OrgInfo[i][Car1x],OrgInfo[i][Car1y],OrgInfo[i][Car1z],0.00000000,vcolor,vcolor);
Reply
#2

yes,but i hoped that someone could help me...
Reply
#3

vehicle functions?
Reply
#4

BUMP

well i guess i can change the color of vehicle with ChangeVehicleColor
but how do i check the id of the car when it spawns multiple cars with this
Код:
	AddStaticVehicle(OrgInfo[i][Car1],OrgInfo[i][Car1x],OrgInfo[i][Car1y],OrgInfo[i][Car1z],0.00000000,vcolor,vcolor);
Reply
#5

heyho bump
Reply
#6

Quote:
Originally Posted by WardenCS
Посмотреть сообщение
heyho bump
AddStaticVehicle returns an vehicleid,
you can destroy the vehicle with DestroyVehicle(vehicleid);

then just create the vehicle again,m but with your desired ID.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)