Just a very simple script. It adds the possibility to publish an ad. The ad is displayed to every player in the server via a notification.
You can simply modify the price of an ad. To do that, you just have to modify the variables called "price" in cl.lua and sv.lua.
RegisterServerEvent("pub:check_money")
AddEventHandler("pub:check_money", function(text, title)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
local price = 50
function Pub()
local price = 50
You simply have to uncomment the 3 following lines in sv.lua:
TriggerEvent('esx_addonaccount:getSharedAccount', 'society_weazel', function(account)
account.addMoney(price)
end)
Simply modify the global called position in cl.lua
local position = vector3(-1083.1131, -245.848, 37.76)