Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local function helloWorld(name) -- Secondary Function/ our custom one which can hold infomration. But still need be executed by a primary function!
  2. print(name)
  3. end
  4.  
  5. function onUse(player, item, fromPosition, target, toPosition, isHotkey) -- Primary Function from the engine!!! Without this, the secondary will not get executed!
  6. helloWorld(player:getName()) -- As you see we need execute it from a primary one!
  7. return true
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement