Saving car mods using yini
#3

Quote:
Originally Posted by Skimmer
Посмотреть сообщение
Are you using AddVehicleComponent to add mods?

Because OnVehicleMod is not called by AddVehicleComponent.

Check this https://sampwiki.blast.hk/wiki/OnVehicleMod

EDIT: If so you can create your custom function to add mods.

pawn Код:
AddVehicleComponentEx(vehicleid, componentid)
{
    AddVehicleComponent(vehicleid, componentid);
    SaveVehMods(vehicleid, componentid);
}
Then replace all AddVehicleComponent with AddVehicleComponentEx.
i am modding my vehicle in modshop so adding component is not a problem but saving is i am trying to save component id unde onvehiclemod but its not saved check my code
Reply


Messages In This Thread
Saving car mods using yini - by SalmaN97 - 14.05.2016, 14:43
Re: Saving car mods using yini - by Skimmer - 14.05.2016, 17:07
Re: Saving car mods using yini - by SalmaN97 - 14.05.2016, 17:18
Re: Saving car mods using yini - by Skimmer - 14.05.2016, 17:28
Re: Saving car mods using yini - by SalmaN97 - 14.05.2016, 18:13
Re: Saving car mods using yini - by Skimmer - 14.05.2016, 19:27
Re: Saving car mods using yini - by SalmaN97 - 14.05.2016, 19:58
Re: Saving car mods using yini - by oMa37 - 14.05.2016, 20:34
Re: Saving car mods using yini - by SalmaN97 - 14.05.2016, 20:39
Re: Saving car mods using yini - by Sew_Sumi - 14.05.2016, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)