Alerts
-- msg [string]: Message to display in the notification
-- type [string]: Type of notification to display
-- timeout [int]: Time in milliseconds to display the notification
function Alert(msg, type, timeout)
lib.notify({
type = type,
description = msg,
icon = "fas fa-truck",
duration = timeout,
position = "top",
})
end3D Text
-- Purpose: Function to draw 3D text.
-- x [float]: X coordinate
-- y [float]: Y coordinate
-- z [float]: Z coordinate
-- text [string]: Text to display
function DrawText3D(x, y, z, text)
SetTextScale(0.4, 0.4)
SetTextFont(4)
SetTextProportional(1)
SetTextColour(220, 220, 220, 215)
BeginTextCommandDisplayText("STRING")
SetTextCentre(true)
AddTextComponentSubstringPlayerName(text)
SetDrawOrigin(x,y,z+0.5, 0)
EndTextCommandDisplayText(0.0, 0.0)
ClearDrawOrigin()
endPolice Alert
Can Interact
Forced Entry
Last updated