7,072
edits
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
[[Client/Defines#GTA_III_-_Colour_Defines|Client colour defines]] | [[Client/Defines#GTA_III_-_Colour_Defines|Client colour defines]] | ||
|exampleLua = message("This text is shown in the chat box.", COLOUR_GREEN) | |exampleLua = message("This text is shown in the chat box.", COLOUR_GREEN) | ||
|exampleJSSS = addCommandHandler("message1", (command, text, client) => | |||
{ | |||
if (client.player) | |||
{ | |||
message(client.name + ' is spawned!'); | |||
} | |||
else | |||
{ | |||
message(client.name + ' is not spawned!'); | |||
} | |||
}); | |||
|exampleJSCS = addCommandHandler("message1", (command, text) => | |||
{ | |||
if (localClient.player) | |||
{ | |||
message('You are spawned!'); | |||
} | |||
else | |||
{ | |||
message('You are not spawned!'); | |||
} | |||
}); | |||
}} | }} | ||
edits