VK_Main didn’t find a better name, so I put the folder’s name from my server. If you have any ideas…
VK_main is a sort of framework for your script, it will help you and make you save precious time. The time of copy/paste functions like “tablelenght” is over.
Our goals
To provide a list of useful functions for any resources.
Regrouping copy/pasted functions in one place.
Make functions as events, to be called from server.
That the community will add dozen of functions, to make it the most complete as possible.
Submiting functions
Just make a pull request on GitHub or send me the code if you want
Functions list I didn’t make all the functions, it’s a community project and I don’t know the authors
- drawNotification(text)
- displayHelpText(text)
- getClosestPlayer()
- getPlayers()
- drawAdvancedText(x,y ,w,h,sc, text, r,g,b,a,font,jus) : [Release] GUI Editor v0.2 [Updated 15 January 2017 (+7 UTC)]
- f(n)
- localPed()
- try(f, catch_f)
- firstToUpper(str)
- tablelength(T)
- round(num, idp)
- stringstarts(String,Start)
Use of functions
exports.vk_main:function_name(arguments)
Example
exports.vk_main:drawNotification("Hello word") -- Will display "Hello world", in the bottom-left corner
Download from GitHub
Made for this awesome Community