Page cover

πŸ“œScripts

RCore Spray

1

In the server/server.lua file add the following at or near Line 70 just before the PersistSpray(spray) line:

    local gangID = exports["cb-gangsystem"]:GetGangID(Source)
    local zoneName = exports['cb-gangsystem']:GetGangZonePlayerIsIn(Source)
    local increaseAmount = Config.LoyaltyIncreaseAmount
    exports["cb-gangsystem"]:AddLoyaltyToZone(gangID, zoneName, increaseAmount)
Server
2

Add Configuration

Add the following line to your RCore Spray config.lua file at or near Line 21:

    LoyaltyIncreaseAmount = 20, -- This is the amount of loyalty that will be added to the gang zone when a player sprays
Configuration

Last updated