Vehicles and objects
#1

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
Reply
#2

i usually use
AddStaticVehicleEx
and
CreateDynamicObject
Reply
#3

Same goes for me. The person above me.
Reply
#4

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.
Reply
#5

I would recommend AddStaticVehicleEx and CreateDynamicObject
Reply
#6

AddStaticVehicleEx and CreateDynamicObject thats what i use and the best
Reply
#7

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)
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)