Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/bitpredator/empiretown into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed May 21, 2024
2 parents ae01bfc + 90fb558 commit adcef54
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions server-data/resources/[bpt_addons]/bpt_basicItem/server/main.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ESX = exports["es_extended"]:getSharedObject()

ESX.RegisterUsableItem("idcard", function(source)
local _source = source
TriggerClientEvent("IDCARD:USE", _source)
end)

ESX.RegisterUsableItem("dmvcard", function(source)
local _source = source
TriggerClientEvent("DMVCARD:USE", _source)
end)

ESX.RegisterUsableItem("licensecard", function(source)
local _source = source
TriggerClientEvent("WCARD:USE", _source)
end)

0 comments on commit adcef54

Please sign in to comment.