Hello,
Can anyone help me I would like to add to the police to buy weapons with money in the society, do you know how to add this feature ??
Thanks
Hello,
Can anyone help me I would like to add to the police to buy weapons with money in the society, do you know how to add this feature ??
Thanks
Boss can take society money to buy weapon
Or
You can add in the server script a trigger with addonaccount with society_police account to remove society money instead of player’s money.
Send me your server.lua pls
I send the modified file when I’m in my home
Ok thanks
I’ve made the change for buy weapon and buy vehicle.
It now use society money.
for get it works you must have installed esx_addonaccount.
if you don’t install esx_addonaccount you must import the SQL here:
USE es_extended
;
INSERT INTO addon_account
(name, label, shared) VALUES
(‘society_police’, ‘Police’, 1)
;
main.lua (18.7 KB)
Don’t forget to install esx_addonaccount and the esx_addonaccount’s SQL before the SQL above.
Thanks my dude
Hey, replaced the main.lua with the one u sent. I cant get it to work to buy to veichles from the police veichle shop. Is there something I have to change or how do I get it to work?
Did you have in your db the society_police created
And the script esx_addonaccount
Yes, but I dont mind having players being charged for buying in cars but I would really like to have society to be charged when buying weapons.
Esx_addonaccount is for make account for society if you wand to pay your weapon with society money you have to install this.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.