Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local prefix = "#"
- local function commands(event, player, msg, type, lang)
- if (msg:sub(1, prefix:len()) == prefix) then
- local command = msg:gsub('%#', '')
- if(command == 'hello') then
- print('Greetings')
- end
- if(command == 'test') then
- print('Am I working papa?')
- end
- end
- return false
- end
- RegisterPlayerEvent(18, commands)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement