mirror of
https://old.git.ood.ovh/flambyte/hactanightserv.git
synced 2025-04-28 22:06:19 +02:00
first commit
This commit is contained in:
commit
e5a5556135
4 changed files with 16 additions and 0 deletions
2
client.lua
Normal file
2
client.lua
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
RegisterCommand(Config.commandName, function)
|
||||||
|
|
0
config.lua
Normal file
0
config.lua
Normal file
0
server.lua
Normal file
0
server.lua
Normal file
14
shared.lua
Normal file
14
shared.lua
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
-- (Coté serveur script)
|
||||||
|
-- Enregistrer une commande qui s'appelle 'ping'.
|
||||||
|
RegisterCommand(Config.commandName, function(source, args, rawCommand)
|
||||||
|
if (source > 0) then
|
||||||
|
local PlayerName = GetPlayerName(source)
|
||||||
|
else
|
||||||
|
local PlayerPedID = GetPlayerName()
|
||||||
|
end
|
||||||
|
local index = math.random(1, #(Config.insult_list))
|
||||||
|
-- le resultat (en utilisant le thème) https://i.imgur.com/TaCnG09.png
|
||||||
|
TriggerClientEvent("chat:addMessage", -1, {
|
||||||
|
args,
|
||||||
|
|
||||||
|
}))
|
Loading…
Add table
Reference in a new issue