Posts: 305
Threads: 52
Joined: Mar 2012
Reputation:
0
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
Posts: 83
Threads: 24
Joined: Dec 2011
Reputation:
0
i usually use
AddStaticVehicleEx
and
CreateDynamicObject
Posts: 783
Threads: 60
Joined: Mar 2011
Reputation:
0
Same goes for me. The person above me.
Posts: 1,177
Threads: 27
Joined: Sep 2011
Reputation:
0
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.
Posts: 437
Threads: 59
Joined: Oct 2011
Reputation:
0
I would recommend AddStaticVehicleEx and CreateDynamicObject
Posts: 153
Threads: 20
Joined: Oct 2012
Reputation:
0
AddStaticVehicleEx and CreateDynamicObject thats what i use and the best
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
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)
Posts: 758
Threads: 7
Joined: Mar 2011
Reputation:
0
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.