forked from ItsAmmarB/DeathScript
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfunctions.lua
More file actions
34 lines (27 loc) · 952 Bytes
/
Copy pathfunctions.lua
File metadata and controls
34 lines (27 loc) · 952 Bytes
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
------ MADE BY MAX F. ------
--FOR JUSTICE COMMUNITY RP--
----------------------------
function ShowNotification(message)
SetNotificationTextEntry("STRING")
AddTextComponentString(message)
DrawNotification(true, false)
end
function respawnPed(ped, coords)
SetEntityCoordsNoOffset(ped, coords.x, coords.y, coords.z, false, false, false, true)
NetworkResurrectLocalPlayer(coords.x, coords.y, coords.z, coords.heading, true, false)
SetPlayerInvincible(ped, false)
TriggerEvent('playerSpawned', coords.x, coords.y, coords.z, coords.heading)
ClearPedBloodDamage(ped)
resetTimers()
end
function revivePed(ped)
NetworkResurrectLocalPlayer(GetEntityCoords(ped, true), true, true, false)
SetPlayerInvincible(ped, false)
ClearPedBloodDamage(ped)
resetTimers()
end
function Alert(message)
SetTextComponentFormat("STRING")
AddTextComponentString(message)
DisplayHelpTextFromStringLable(0, 0, 1, -1)
end