SA-MP Forums Archive
overwriting default functions - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: overwriting default functions (/showthread.php?tid=636374)



overwriting default functions - fiha4155 - 26.06.2017

I have a pre-prepared createobject list. I want to remove specific objects from it but I dont know which line I have to remove. I just want to overwrite default createdynamicobject function to something that also creates 3dtextlabels while creating the object. I will set the 3dtextlabels text to object model, object pos so I will know the line for the models which created with createdynamicobject function. I need help with this


Re: overwriting default functions - Toroi - 26.06.2017

http://forum.sa-mp.com/showpost.php?...3&postcount=17

Read the first post as an example but use ******' advice.

It does not have to be in a separated file; no need to call for local function either.

Always hook at top of the gamemode or script you're using so you don't skip any code.