Use the phone as an item

Hi, i’m using gcphone and i’m searching for a code that allow u to use the phone (cellulare) just when u have the item of it.
If u don’t have a phone (cellulare) in un inventory, u can’t use it.

Any help?

if ur using ESX then go off of this Native https://esx-org.github.io/es_extended/server/functions/registerusableitem/

1 Like

Mhhh no, i mean, when i have the item, i can press f1 and use the phone, when i don’t have the item, when i press f1 trigger “u don’t have a phone”

Hello

client.lua :


server.lua :


Add phone item and shops :slight_smile:

It does not work ?

it didn’t work pleas give me ur server.lua and client.lua i really need this