Jump to content

Delete unneeded functions


12p

Recommended Posts

getAlivePlayers

getRandomPlayer

These functions can be easily done by using table functions. I think aren't necessary and could be deleted. I know there are some more, but I don't remember them now.

---------------------------

set/getPedRotation

set/getVehicleRotation

Why to use them? There is getElementRotation and setElementRotation!

Edited by Guest
Link to comment
  • 2 weeks later...

Do you know how many problems it would cause for the owners of servers if suddenly half their scripts stopped working because these functions would get removed? Most server owners can't script, and there really isn't much harm in them being there.

Link to comment

OMG you don't get me. I mean we should delete them because those are unneeded, but we can make a kind of "useful function" from it (so just we add the few lines that define the function and it will work anyway)

There is no need that it be a MTA Built-In function, because, For example:

getAlivePlayers can be easily made with the functions:

table = {} --table creating 
getElementsByType 
getElementHealth 
table.insert 

Link to comment
I still don't see no point in deleting functions on C++ and then rewriting them in Lua...

I just wanna say 1 thing: Why to use those MTA functions if you can script them (and those functions are so easy to script...)? It would be like SA:MP, using functions like the "driving licenses system" I heard's, it can be done in MTA by scripting, no need it be a built-in function. As easy as that!

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...