This is a simple payphone script and it was released by us the ui part is compiled since it was written with react, give it a try
Discord : https://discord.gg/RCrQZayqAs Youtube : https://www.youtube.com/@nyxdevelopments Tebex : https://nyxdevelopment.tebex.io/
its compatiable with almost everyphone you might have but if you had a different type of phone than the normal stuff you can change the function from line 60 in client.lua, also there is function that checks if the player is next to the payphones when calling, use that to your own liking and make sure to add this followig code to your qb-phone/main.lua any where
local PublicPhoneobject = {
-2103798695,1158960338,
1281992692,1511539537,
295857659,-78626473,
-1559354806
}
exports['qb-target']:AddTargetModel(PublicPhoneobject, { -- This defines the models, can be a string or a table
options = { -- This is your options table, in this table all the options will be specified for the target to accept
{
icon = "fas fa-phone-volume",
label = "Make Call",
event = "nyx-payphone:showpphone",
},
},
distance = 2.5, -- This is the distance for you to be at for the target to turn blue, this is in GTA units and has to be a float value
})
in qb-phone line 401 in main.lua add this following line
exports('CallContact', CallContact)