Can't see vehicles after changing virtualworld
#4

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
make a debug for the car virtual world with GetVehicleVirtualWorld and see if it matches yours
I did it, still nothing.
All I do is using /setvirtualworld [world] command and when I'm back the vehicles are gone but not the rest of the things such as pickups and 3dlabels.

PHP код:
CreateVehicle(4112600, -220014011, -1);
AddStaticVehicle(5202603, -219514001); // hydra 
nothing is wrong with my command though, when I use virtualworld change on playerspawn it won't show as well
PHP код:
CMD:setvirtualworld(playeridparams[])
{
    if(
sscanf(params"d"I[0])) return Message(playeridTYPE_USAGE"/virtualworld [virtualworld]");
    
SetPlayerVirtualWorld(playeridI[0]);
    return 
1;

before changing vw:


after changing vw:


after changing back to vw 0:


the screenshots are not edited, the hp loss is due to hunger and dehydration

Also it won't show vehicles that were created after changing the interior:
PHP код:
CMD:adminvehicle(playeridparams[])
{
    new 
string[64];
    if(
DB[playerid][Admin] < 3) return Message(playeridTYPE_ERROR"You're not allowed to use this command.");
    if(
sscanf(params"d"I[0])) return Message(playeridTYPE_USAGE"/adminvehicle [model id]");
    
DestroyVehicle(AVehicle[playerid]);
    
GetPlayerPos(playeridF[0], F[1], F[2]);
    
GetPlayerFacingAngle(playeridF[3]);
    
AVehicle[playerid] = CreateVehicle(I[0], F[0], F[1], F[2], F[3], 11, -1);
    
SetVehicleVirtualWorld(AVehicle[playerid], GetPlayerVirtualWorld(playerid));
    
LinkVehicleToInterior(AVehicle[playerid], GetPlayerInterior(playerid));
    
SetVehicleNumberPlate(AVehicle[playerid], "{FFFFFF}Admin");
    
//PutPlayerInVehicle(playerid, AVehicle[playerid], 0);
    
format(stringsizeof(string), "Spawned an OOC Admin vehicle (%d)."GetVehicleModel(AVehicle[playerid]));
    
Message(playeridTYPE_ADMINstring);
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)