Graffitis
Last updated
Last updated
Go to av_gangs\config\_graffiti.lua
and add the gang name as key index and the spray texture name like this:
To get the gang name use the admin panel, select the gang from the dropdown menu and click the Copy button in the top right side:
You can now restart your server.
Spray and Spray Remover can be purchased with a NPC, the config for this can be found in config/shop.lua
Only gang members can talk to him, other people will be automatically rejected.
The spray item stores metadata: the gang name that bough it and an expiration time.
Only the gang who bought it can use it.
The expiration time is set to 6 hours by default. If the item is not used within this period, it will expire and become unusable. Check config/sprays.lua
There's a daily limit on how many sprays a gang can buy, default is 1.
Make sure to be close to the wall where you want to place the graffiti, use the spray item and the graffiti prop will be spawned in front of you, you can adjust the graffiti position using your game camera, using your left and right keys you can change rotation.
Once you confirm it will start the spray animation, graffiti will be synced server side and the gang zone will be generated on map.
This item can be only used by gang members, you can edit the check in client/editable/spray.lua for ppl who wants to let cops remove graffitis, is on you to make the needed modifications for this.
If there are enough gang members online, you will be able to start the animation. Otherwise you will need to wait until there are sufficient members from the graffiti gang online, or you can lower the required number in config/sprays.lua
Gang members will receive a notification and a blip on map alerting about their graffiti being removed.