forked from Simnation/Main
Update server.lua
This commit is contained in:
parent
e5b1654f9a
commit
fac43847b1
1 changed files with 7 additions and 4 deletions
|
@ -64,11 +64,14 @@ lib.callback.register("pickle_consumables:useItem", function(source)
|
||||||
if cfg.status then
|
if cfg.status then
|
||||||
ExecuteStatus(source, cfg.status)
|
ExecuteStatus(source, cfg.status)
|
||||||
end
|
end
|
||||||
-- Add drunk level functionality here
|
-- Add drunk level functionality here
|
||||||
if cfg.drunkLevel then
|
if cfg.drunkLevel then
|
||||||
exports['cs_drunk']:AddDrunkLevel(source, cfg.drunkLevel)
|
exports['cs_drunk']:AddDrunkLevel(source, cfg.drunkLevel)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
return true, metadata.uses
|
||||||
|
end) -- This closing parenthesis was missing
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RegisterNetEvent("pickle_consumables:returnItem", function(destroy)
|
RegisterNetEvent("pickle_consumables:returnItem", function(destroy)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue