💦Rcore Integration

We understand some users are going to be coming from Rcore_Gangs and Rcore_Sprays, we ourselves use the spray script so we have created a compatibility layer allowing gangs to gain rep for using sprays. We also have made a export so that if you have already integrated Rcore_Gangs into your server and want to swap you dont need to modify any code.

RegisterNetEvent('rcore_gangs:server:increase_loyalty', function(action, modifier)
	local src = source
	exports["Haptic-Gangs"]:modifypoints(src, "add", modifier)
end)

RegisterNetEvent('rcore_gangs:server:decrease_loyalty', function(action, modifier)
	local src = source
	exports["Haptic-Gangs"]:modifypoints(src, "remove", modifier)
end)

RegisterNetEvent('rcore_sprays:addSpray', function(player, test, locaion)
	local src = player
	exports["Haptic-Gangs"]:modifypoints(src, "add", Config.RcoreSprayAdd)
end)

Last updated