20.03.2019, 17:00
I have a bug with cars ids
I create a job vehicle for a player that start a job and a restriction when he tries to enter the vehicle if he's not on the job and
when im entering random vehicles that aren't from the job it say's that they are job vehicles
//here i create the vehicle
JobVehicle[playerid] = CreateVehicle(482, 2179.4768,-1667.1775,14.8053, 258.5340, 0, 0, 100);
// here's the restriction (its under OnPlayerEnterVehicle)
if(DrugsCp[playerid] == 0 && vehicleid == JobVehicle[playerid])
{
SendClientMessage(playerid, COLOR_GREY, "This is a job vehicle");
SlapPlayer(playerid);
}
then after relog it all works fine if i don't wotk at that job again
I create a job vehicle for a player that start a job and a restriction when he tries to enter the vehicle if he's not on the job and
when im entering random vehicles that aren't from the job it say's that they are job vehicles
//here i create the vehicle
JobVehicle[playerid] = CreateVehicle(482, 2179.4768,-1667.1775,14.8053, 258.5340, 0, 0, 100);
// here's the restriction (its under OnPlayerEnterVehicle)
if(DrugsCp[playerid] == 0 && vehicleid == JobVehicle[playerid])
{
SendClientMessage(playerid, COLOR_GREY, "This is a job vehicle");
SlapPlayer(playerid);
}
then after relog it all works fine if i don't wotk at that job again