Faction cars goes invisable after server restart/start
#1

How can i fix this problem? is there any plugin or something that would help me?
It is not all faction cars but many of them. And then i must go respawn them one by one for them to be visable again and that is starting to become pretty boring.. So if anyone got an idea how to fix this i would be very glad to hear it!

This is how i add cars in the script (if that would help)
pawn Код:
armycar[39] = AddStaticVehicleEx(579,193.3994100,1813.5000000,17.7000000,0.0000000,99,1,30000);
Reply
#2

Are you trying to add them inside an interior?
Reply
#3

No, Just normal outside
Reply
#4

pawn Код:
SetVehicleToRespawn(A_VEHICLE_ID); // no, do not use A_VEHICLE_ID
Try a loop and have it respawn the vehicles after they are created. Might help.
Reply
#5

Ok but how do i do that?
Reply
#6

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
Ok but how do i do that?
pawn Код:
for(new i = 0; i < sizeof(armycar); i++)
{
    SetVehicleToRespawn(armycar[i]);
}
Reply
#7

where do i put that?
Reply
#8

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
where do i put that?
Quote:
Originally Posted by Skyrise
Посмотреть сообщение
after they are created. Might help.
That. ^
Reply
#9

Nope, still the same thing. It didnt work
Reply
#10

The vehicle ID is trying to be added to an interior somewhere in the GM, I can't remember the function for it. Somthing like SetVehicleInterior, find that in the GM and remove the ones that shouldn't be there.

This is a Ravens RP problem...

If you can don't use Ravens RP. It's full of these type of annoying bugs.
Reply
#11

Yes i know it is, but im using those bugs to learn more about scripting etc, allready fixed alot of them so i dont wanna stop now
Reply
#12

pawn Код:
LinkVehicleToInterior(84, 7);
    LinkVehicleToInterior(85, 7);
    LinkVehicleToInterior(86, 7);
    LinkVehicleToInterior(87, 7);
    LinkVehicleToInterior(88, 4);
    LinkVehicleToInterior(89, 4);
    LinkVehicleToInterior(90, 4);
    LinkVehicleToInterior(91, 4);
    LinkVehicleToInterior(92, 14);
    LinkVehicleToInterior(93, 14);
    LinkVehicleToInterior(94, 14);
    LinkVehicleToInterior(95, 14);
    LinkVehicleToInterior(96, 14);
this is what i have, i figgured that the last 2 numbers are the interior, but what is the first 2? the id of the car?
Reply
#13

Well your best bet is to remove all of Find the hotring cars in the Race Stafium, use this function for them, and delete the rest from the list.

This may help: https://sampwiki.blast.hk/wiki/InteriorCars
Reply
#14

Thanks, helped alot! +REP for you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)