To use exclusive content you have to enable exclusive content through:
Dealership/shared/config_exclusive.lua
Exclusive.Retrieval = {
use = true, -- SET USE TO TRUE
type = 'COINS',
}
Now we have to configure the function to check the payment and do the payment. Head to:
Dealership/server/functions/sv_editable.lua
Editable.ExclusivePayCheck = function(src, vehData)
--Apply the code check if user have exclusive currency required for vehicle price. Example
local coins = 2000
if coins >= vehData.price then
return true
end
return false
-- For help contact on discord discord.gg/MF9uVuWrQn
end
Editable.ExclusivePayForVehicle = function(src, vehData)
local coins = 2000
local receivedPay = false
if coins >= vehData.price then
--removeCoinsFunc(vehData.price)
receivedPay = true
else
receivedPay = false
end
return receivedPay
-- For help contact on discord discord.gg/MF9uVuWrQn
end
You have to add function to gather "COINS" amount and "COINS" removal.
After that you can set your exclusive vehicle in database. All you have to do is add 1 in isExclusive column.