Adds server export for inserting weaponinfo records, that can be used elsewhere in your server, such as weapon purchase, to add information to the mdt. Below is the syntax for this, all arguments are strings. exports['ps-mdt']:CreateWeaponInfo(serial, imageurl, notes, owner, weapClass, wea...
Adds server export for inserting weaponinfo records, that can be used elsewhere in your server, such as weapon purchase, to add information to the mdt. Below is the syntax for this, all arguments are strings. exports['ps-mdt']:CreateWeaponInfo(serial, imageurl, notes, owner, weapClass, wea...
Add the follow function towards the end of the script. \\Existingcodebelowforreference,putitrightunderit. \\server.shops=Shops\\Existingcodeaboveforreference,putitrightunderit. \\functionAddWeaponToMDT(serial,imageurl,notes,owner,weapClass,weapModel)Citizen.CreateThread(function()Wait(500)localsuccess...
Adds server export for inserting weaponinfo records, that can be used elsewhere in your server, such as weapon purchase, to add information to the mdt. Below is the syntax for this, all arguments are strings. exports['ps-mdt']:CreateWeaponInfo(serial, imageurl, notes, owner, weapClass, wea...
Adds server export for inserting weaponinfo records, that can be used elsewhere in your server, such as weapon purchase, to add information to the mdt. Below is the syntax for this, all arguments are strings. exports['ps-mdt']:CreateWeaponInfo(serial, imageurl, notes, owner, weapClass, wea...
RegisterNetEvent('inventory:server:SetInventoryData', function(fromInventory, toInventory, fromSlot, toSlot, fromAmount, toAmount) elseif QBCore.Shared.SplitStr(shopType, "_")[1] == "Itemshop" then if Player.Functions.RemoveMoney("cash", price, "itemshop-bought-item") then ...
[2], itemData, fromAmount) QBCore.Functions.Notify(src, itemInfo["label"] .. " bought!", "success") exports['ps-mdt']:CreateWeaponInfo(serial, imageurl, notes, owner, weapClass, weapModel) TriggerEvent("qb-log:server:CreateLog", "shops", "Shop item bought", "green", "**"..Get...
\\ server.shops = Shops \\Existing code above for reference, put it right under it. \\ function AddWeaponToMDT(serial, imageurl, notes, owner, weapClass, weapModel) Citizen.CreateThread(function() Wait(500) local success, result = pcall(function() return exports['ps-mdt']:Create...
[2], itemData, fromAmount) QBCore.Functions.Notify(src, itemInfo["label"] .. " bought!", "success") exports['ps-mdt']:CreateWeaponInfo(serial, imageurl, notes, owner, weapClass, weapModel) TriggerEvent("qb-log:server:CreateLog", "shops", "Shop item bought", "green", "**"..Get...
Adds server export for inserting weaponinfo records, that can be used elsewhere in your server, such as weapon purchase, to add information to the mdt. Below is the syntax for this, all arguments are strings. exports['ps-mdt']:CreateWeaponInfo(serial, imageurl, notes, owner, weapClass, wea...