Vehicles and objects -
Zex Tan - 08.10.2012
Need help for Vehicle Functions,
Which is better?
CreateVehicle, AddStaticVehicleEx, AddStaticVehicle
Which of the functions are useful for Roleplay?
About Objects,
Well, which of the functions are useful?
CreateObject or CreateDynamicObject
Help me pls, I need help for my RP server that no one has ever release in SA-MP
Re: Vehicles and objects -
nickstar - 08.10.2012
i usually use
AddStaticVehicleEx
and
CreateDynamicObject
Re: Vehicles and objects -
dannyk0ed - 08.10.2012
Same goes for me. The person above me.
Re: Vehicles and objects -
SuperViper - 08.10.2012
When you use
AddStaticVehicle, you can't specify a respawn time for the vehicle while when you use
AddStaticVehicleEx, you can. Those two aren't better than each other. It's all about what you're trying to make.
AddStaticVehicle and
AddStaticVehicleEx can only be created under
OnGameModeInit and
OnFilterScriptInit while
CreateVehicle can be created anywhere in the script. I'm not exactly sure as to why you shouldn't use
CreateVehicle under
OnGameModeInit and
OnFilterScriptInit rather than
AddStaticVehicle or
AddStaticVehicleEx, but I would recommend
AddStaticVehicle or
AddStaticVehicleEx when initializing a filterscript or gamemode because it was probably made that way for a reason.
As for the objects,
CreateDynamicObject is for the streamer and while it puts pressure on your server, it allows you to have as many objects as you want created. Only 1,000 objects (or 400, not sure) will show at one time though. You are limited to 1,000
CreateObject objects.
Re: Vehicles and objects -
RenSoprano - 08.10.2012
I would recommend AddStaticVehicleEx and CreateDynamicObject
Re: Vehicles and objects -
Simplyfrag - 08.10.2012
AddStaticVehicleEx and CreateDynamicObject thats what i use and the best
Re: Vehicles and objects -
JaKe Elite - 08.10.2012
for objects.
CreateDynamicObject you can create unlimited objects.
But i'm having problem with it, it only loads when player is only near (For me)
Re: Vehicles and objects -
Basssiiie - 08.10.2012
I agree with SuperViper, although weirdly enough, AddStaticVehicle and AddStaticVehicleEx works just fine outside of OnGameModeInit/OnFilterScriptInit.
CreateVehicle is for me the best, as it allows for the most control. (DestroyVehicle ect)
The limit of CreateObject is 1000. The limit of CreateDynamicObject is streamer-dependent. Most of the time it's "unlimited". The amount of objects a streamer can actually show to a player, is also different for each streamer. For example the Streamer Plugin shows by default a max of 500 object for a player. (You can have more, they won't be showed though.) The 500 can be upped until 999 in Streamer Plugin with an extra function.