feat(web): primary colour and shade convars

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

No files matched your search

+7
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)