Exports
Phone
Client

Client

okokPhone, qs-smartphone, qs-smartphone-pro, and qb-phone cannot open the phone from a script. qs-smartphone and qb-phone cannot close it either, and qb-phone cannot tell whether it is open.

OpenPhone

Parameters

None.

Returns

boolean

Example

Bridge.OpenPhone()

ClosePhone

Parameters

None.

Returns

boolean

Example

if Bridge.IsPhoneOpen() then
    Bridge.ClosePhone()
end

IsPhoneOpen

Parameters

None.

Returns

boolean

Example

local open = Bridge.IsPhoneOpen()

SetPhoneDisabled

Parameters

  • state boolean — true blocks the phone

Returns

boolean — sky_phone, gksphone, okokPhone, qs-smartphone, and qb-phone have no disable switch and return false

Example

Bridge.SetPhoneDisabled(true)

IsPhoneDisabled

Parameters

None.

Returns

boolean — on 17mov_Phone this is the state last set through n_bridge

Example

if Bridge.IsPhoneDisabled() then
    Bridge.Notify({ description = 'Your phone is blocked', kind = 'error' })
end

SendPhoneNotification

Parameters

  • data table — { title, description, app }

Returns

boolean — yseries and qs-smartphone have no client notification and return false

Example

Bridge.SendPhoneNotification({
    title = 'Garage',
    description = 'Car stored.',
    app = 'Settings',
})
Join Our Discord