> For the complete documentation index, see [llms.txt](https://lcdevdocs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lcdevdocs.gitbook.io/docs/haptic/haptic-gangs/integrations/rcore-integration.md).

# 💦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.

```lua
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)

```
