Client Functions
Client editables can be found in: client/editables.lua
ShowNotification
This function displays the notifications.
function ShowNotification(event)
AddTextEntry('notification_message', event.message)
BeginTextCommandThefeedPost('notification_message')
EndTextCommandThefeedPostMessagetext("CHAR_BLANK_ENTRY", "CHAR_BLANK_ENTRY", false, 0, event.title, "")
EndTextCommandThefeedPostTicker(false, true)
endParameters
event:title: string, notification title.message: string, notification content.type: string, notification type. (“default”, “error”)
DoesPedHaveAnyBag
This function returns whether the player ped has a bag or not.
function DoesPedHaveAnyBag(ped)
return GetPedDrawableVariation(ped, 5) > 0
endParameters
ped: integer, game entity handle. In this case, equivalent toPlayerPedId().
Last updated