Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function helloWorld(name) -- Secondary Function/ our custom one which can hold infomration. But still need be executed by a primary function!
- print(name)
- end
- function onUse(player, item, fromPosition, target, toPosition, isHotkey) -- Primary Function from the engine!!! Without this, the secondary will not get executed!
- helloWorld(player:getName()) -- As you see we need execute it from a primary one!
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement