πŸ“±Integrating qb-phone

πŸ”§ If You're Using qb-phone

You must add the following export to your qb-phone/client/main.lua to allow job calls:

-- Exports

exports('StartCall', function(phoneNumber, isAnonymous)
    if not PhoneData.CallData.InCall then
        local CallData = {
            number = phoneNumber,
            name = IsNumberInContacts(phoneNumber)
        }
        CallContact(CallData, isAnonymous or false)
        return true
    else
        return false
    end
end)

Without this, players won’t be able to start a call from the jobs menu when using qb-phone.

Last updated