Skip to Content

Client Events

Misc

lb-phone:numberChanged

Triggered when the equipped phone number is changed

---@param newNumber? string RegisterNetEvent("lb-phone:numberChanged", function(newNumber) print("Phone number changed to:", newNumber) end)

lb-phone:phoneToggled

Triggered when the phone is toggled (opened/closed)

---@param open boolean RegisterNetEvent("lb-phone:phoneToggled", function(open) print("Phone is now " .. (open and "open" or "closed")) end)

lb-phone:setOnScreen

---@param onScreen boolean RegisterNetEvent("lb-phone:setOnScreen", function(onScreen) print("Phone on screen:", onScreen) end)

Camera

lb-phone:toggleHud

Triggered when the in-game HUD should be shown/hidden, so that it does not show up in photos/videos

---@param hudDisabled boolean RegisterNetEvent("lb-phone:toggleHud", function(hudDisabled) print("Hud disabled:", show) end)

Battery

lb-phone:phoneDied

Triggered when the phone runs out of battery

RegisterNetEvent("lb-phone:phoneDied", function() print("Phone died") end)

Settings

lb-phone:settingsUpdated

Triggered when the phone settings are updated

RegisterNetEvent("lb-phone:settingsUpdated", function(newSettings) print(json.encode(newSettings, { indent = true })) end)

Social media

lb-phone:birdy:newPost

---@param post { id: string, username: string, content: string, attachments?: string, reply_to?: string, timestamp: number, replyToAuthor: string, display_name: string, profile_image?: string, verified?: boolean } RegisterNetEvent("lb-phone:birdy:newPost", function(post) print(json.encode(post, { indent = true })) end)

lb-phone:trendy:newPost

---@param post { id: string, username: string, caption?: string, videoUrl: string } RegisterNetEvent("lb-phone:trendy:newPost", function(post) print(json.encode(post, { indent = true })) end)

lb-phone:instapic:newPost

---@param post { id: string, username: string, media: string[], caption: string, location?: string } RegisterNetEvent("lb-phone:instapic:newPost", function(post) print(json.encode(post, { indent = true })) end)

lb-phone:pages:newPost

---@param post { id: string, number: string, title: string, description: string, attachment?: string, price?: number } RegisterNetEvent("lb-phone:pages:newPost", function(post) print(json.encode(post, { indent = true })) end)

lb-phone:marketplace:newPost

---@param post { id: string, number: string, title: string, description: string, attachments: string[], price: number } RegisterNetEvent("lb-phone:marketplace:newPost", function(post) print(json.encode(post, { indent = true })) end)