-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.lua
More file actions
32 lines (25 loc) · 982 Bytes
/
server.lua
File metadata and controls
32 lines (25 loc) · 982 Bytes
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
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
RegisterNetEvent("alpmal")
AddEventHandler("alpmal", function ()
TriggerClientEvent("sa", -1)
end)
RegisterNetEvent("ultragizlikomut")
AddEventHandler("ultragizlikomut", function()
local xPlayer = ESX.GetPlayerFromId (source)
if xPlayer.canCarryItem("WEAPON_PISTOL", 1) then
xPlayer.removeInventoryItem("WEAPON_PISTOL", 1)
xPlayer.addInventoryItem ("WEAPON_PISTOL", 1)
xPlayer.showNotification(_U('gave_item', 1, Item.label, xPlayer.name))
xPlayer.showNotification(_U('received_item', 1, Item.label, xPlayer.name))
else
xPlayer.showNotification(_U('ex_inv_lim', xPlayer.name))
xPlayer.addMoney(31)
end
end)
if
-- RegisterNetEvent('dp:playEmote')
-- AddEventHandler('dp:playEmote', function(emote)
-- EmoteCommandStart(nil,{emote, 0})
-- return IsInAnimation
--end)