first commit

This commit is contained in:
Pina Vetrano 2023-01-05 21:44:55 +01:00 committed by GitHub
commit e5a5556135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

2
client.lua Normal file
View file

@ -0,0 +1,2 @@
RegisterCommand(Config.commandName, function)

0
config.lua Normal file
View file

0
server.lua Normal file
View file

14
shared.lua Normal file
View 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,
}))