Moddshop + Removecomponent
#1

So i wanted to remake my vehicle mod saving system, i decided to uses callback OnVehicleMod.
I wanted to remove a vehicle component - nitrous - if player buys it but for no reason it wont take it off, already checked everything should work fine - i added A Client message after that function, message shows up but component wont be taken off. .

Is it a bug or it should be like that?

example script.

pawn Code:
switch(componentid)
{
    case 1008,1009,1010: // nitro
    {
        SendClientMessage(playerid,COLOR_GREY,"* Sorry, not allowed.");
        RemoveVehicleComponent(vehicleid,componentid);
    }
}
Ofcourse as i wrote, message shows but component wont be taken off.
Reply
#2

Perhaps the callback is called prior to the mod actually being applied. Try removing the component a second or so later.
Reply
#3

Quote:
Originally Posted by Jay_
View Post
Perhaps the callback is called prior to the mod actually being applied. Try removing the component a second or so later.
Sorry man, i dont need help with that, just reporting, if its not bug then deny it ... .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)