feat(web): primary colour and shade convars

This commit is contained in:
Luke
2023-02-11 14:40:58 +01:00
parent abd63ba2e4
commit c9ac415f12
4 changed files with 49 additions and 4 deletions

View File

@@ -10,3 +10,10 @@ function RegisterCommand(commandName, callback, restricted)
end
end)
end
RegisterNUICallback('getConfig', function(_, cb)
cb({
primaryColor = GetConvar('ox:primaryColor', 'blue'),
primaryShade = GetConvarInt('ox:primaryShade', 8)
})
end)