-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.lua
More file actions
44 lines (40 loc) · 1.03 KB
/
client.lua
File metadata and controls
44 lines (40 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Citizen.CreateThread(function()
local minimap = RequestScaleformMovie("minimap")
SetRadarBigmapEnabled(true, false)
Wait(0)
SetRadarBigmapEnabled(false, false)
while true do
Wait(0)
BeginScaleformMovieMethod(minimap, "SETUP_HEALTH_ARMOUR")
ScaleformMovieMethodAddParamInt(3)
EndScaleformMovieMethod()
end
end)
RegisterNetEvent('mrp:spawn')
AddEventHandler('mrp:spawn', function(characterToUse, spawnIdx)
if characterToUse ~= nil then
SendNUIMessage({
type = 'spawn',
stats = characterToUse.stats
})
end
end)
RegisterNetEvent('mrp:updateCharacter')
AddEventHandler('mrp:updateCharacter', function(character)
if character ~= nil then
SendNUIMessage({
type = 'update',
stats = character.stats
})
end
end)
AddEventHandler('playerSpawned', function(spawnPoint)
SendNUIMessage({
type = 'show'
})
end)
RegisterCommand('cash', function (source, args)
SendNUIMessage({
type = 'cash'
})
end);