Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(conf): Car Keys Wrapper
  • Loading branch information
renzuzu committed Oct 19, 2021
1 parent 4cd6946 commit 2ed8eb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.lua
Expand Up @@ -15,6 +15,12 @@ Config.CustomImg = false -- if true your Config.CustomImgColumn IMAGE url will b
Config.CustomImgColumn = 'imglink' -- db column name
Config.RgbColor = true -- your framework or garage must support custom colors ex. https://github.com/renzuzu/renzu_garage

-- CARKEYS -- -- you need to replace the event
Config.Carkeys = function(plate,source)
print("Sending Keys")
TriggerClientEvent('vehiclekeys:client:SetOwner',source,plate) -- THIS EVENT IS QBCORE CAR KEYS!, replace the event name to your carkeys event
end
-- CARKEYS --
--EXTRA
Config.UseArenaSpawn = true -- will use custom location for spawning vehicle in quickpick == false
-- MAIN
Expand Down
2 changes: 2 additions & 0 deletions server/server.lua
Expand Up @@ -243,6 +243,8 @@ function Buy(result,xPlayer,model, props, payment, job, type, garage, notregiste
fetchdone = true
bool = true
print("BUY DONE")
Config.Carkeys(props.plate,xPlayer.source)
--TriggerClientEvent('mycarkeys:setowned',xPlayer.source,props.plate) -- sample
else
print("NOT ENOUGH MONEY")
xPlayer.showNotification('Not Enough Money',1,0,110)
Expand Down

0 comments on commit 2ed8eb2

Please sign in to comment.