-
Notifications
You must be signed in to change notification settings - Fork 1
/
events.lua
41 lines (30 loc) · 1.05 KB
/
events.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
-- This is an example file that contains the prototypes of Lua events.
-------------------------------------
-- Common SAMP events --
-------------------------------------
function onSendChat(msg)
-- do something
-- return a true value to mark the command as handled, the command won't be sent.
end
function onShowGameText(text, iTime, iStyle)
-- do something
-- return a true value to mark the command as handled, the command won't be sent.
end
function onAddChatMessage(text)
-- do something
-- return a true value to mark the command as handled, the command won't be sent.
end
function onShowDialog(id, style, caption, text, button, button2, isServerDialog)
-- do something
-- return a true value to mark the command as handled, the command won't be sent.
end
-- and more
-------------------------------------
-- Common GTA events --
-- I do not know if I will implement all of these, because they can be abused quite easily.
-------------------------------------
function onSetPlayerPos(x, y, z)
end
function onPlaySound(sound, x, y, z)
end
-- and more