Problem with ChangeVehiclePaintjob
#1

Well, I need your help about this... Here's the script:

On the start of the script
Код:
new mothership;
On OnPlayerConnect

Код:
mothership = GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(mothership,0);
OnGameModeInit

Код:
mothership = AddStaticVehicleEx(483,-1101.638794, -1630.430176, 76.469536,270,-1,-1,20);
mothership = AddStaticVehicleEx(483,-1111.678589, -1630.315186, 76.469536,270,-1,-1,20);
mothership = AddStaticVehicleEx(483,-1104.774780, -1617.075928, 76.462784,270,-1,-1,20);
I have no errors. I wanted only get the The Truth's paintjob... When I come in-game, the paintjob is not changed, they looks like normal campers...

What did I wrong? Maybe it shouldn't be on OnPlayerConnect?

Anyway, help me in that
Reply
#2

A player is not in a vehicle on his connect.
Reply
#3

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
A player is not in a vehicle on his connect.
So, where should I put it?
Reply
#4

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    ChangeVehiclePaintJob(mothership,0);
    return 1;
}
Maybe?
Reply
#5

Still no paintjob
Reply
#6

Try this one

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    SetVehicleToRespawn(mothership);
    ChangeVehiclePaintJob(mothership,0);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)