[Suggestions / Bugs] Fix OnVehicleSpawn
#1

Fix OnVehicleSpawn so we don't have to use timer with a interval or 0 or 1 or something to actually automatically turn on vehicle lights or w/e

SetVehicleParamsEx does not work under the direct OnVehicleSpawn

Here's a good list of bugs also <.<

https://sampforum.blast.hk/showthread.php?tid=151670

pawn Code:
native RestreamBuildingForPlayer(playerid, objectid);
Object collsions?

pawn Code:
ToggleObjectCollision(objectid, bool:toggle);
false for no collision, anything can go through it (players and vehicles), true for.. the obvious

pawn Code:
ToggleVehicleMarker(vehicleid, bool:toggle, color = 0xFFFFFF);
TogglePlayerMarker(vehicleid, bool:toggle, color = 0xFFFFFF);
pawn Code:
RemoveAllDefaultObjects();
For OnGameModeInit maybe? because removing all objects for each player might be a pain on the server, don't you think?
Reply
#2

Yes please fix SetVehicleParamsEx not working in OnVehicleSpawn.

And I support having a function to remove all SCM objects. This would be a very useful function and I know a lot of people have requested for it before in the past.
Reply
#3

Also AttachTrailerToVehicle doesn't work when you create a vehicle, or if it's streamed out for a player. Such a nightmare. (When it's un-occupied, the trailer isn't 'synced' by any players).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)