Functions
Here you will find functions and example code on how to use our Interactions.
Local Entity
The Interactions can only be invoked on the Client-Side!
Adding Local Entity
exports["is_interaction"]:addInteractionLocalEntity(name, entity, data)exports["is_interaction"]:addTextLocalEntity(name, entity, data)name:
stringentity:
objectdata:
tablehideSquare:
booleanornilcheckVisibility:
booleanornilshowInVehicle:
booleanornildistance:
numberornildistanceText:
numberorniloffset:
tableorniltext:
tablex:
numbery:
numberz:
number
target:
tablex:
numbery:
numberz:
number
bone:
numberorstringorniloptions:
tableoption:
indexed tablename:
stringornillabel:
stringornilicon:
stringornilkey:
stringornilduration:
numberornilonSelect:
functionornil
Example Usage
Removing Local Entity
entity:
objectname:
stringorniloption:
nameornil
Example Usage
Hiding/Showing Local Entity
entity:
objectname:
stringornil
Example Usage
Model
The Interactions can only be invoked on the Client-Side!
Adding Model
name:
stringmodel:
hashdata:
tablehideSquare:
booleanornilcheckVisibility:
booleanornilshowInVehicle:
booleanornildistance:
numberornildistanceText:
numberorniloffset:
tableorniltext:
tablex:
numbery:
numberz:
number
target:
tablex:
numbery:
numberz:
number
bone:
numberorstringorniloptions:
tableoption:
indexed tablename:
stringornillabel:
stringornilicon:
stringornilkey:
stringornilduration:
numberornilonSelect:
functionornil
Example Usage
Removing Model
model:
hashname:
stringorniloption:
nameornil
Example Usage
Hiding/Showing Model
model:
hashname:
stringornil
Example Usage
Global Entities
The Interactions can only be invoked on the Client-Side!
Adding Global Entities
name:
stringselect:
"vehicle"or"ped"or"player"data:
tablehideSquare:
booleanornilcheckVisibility:
booleanornilshowInVehicle:
booleanornildistance:
numberornildistanceText:
numberorniloffset:
tableorniltext:
tablex:
numbery:
numberz:
number
target:
tablex:
numbery:
numberz:
number
bone:
numberorstringornilignoreModel:
indexed tablemodel:
hash
options:
tableoption:
indexed tablename:
stringornillabel:
stringornilicon:
stringornilkey:
stringornilduration:
numberornilonSelect:
functionornil
Example Usage
Removing Global Entities
select:
"vehicle"or"ped"or"player"name:
stringorniloption:
nameornil
Example Usage
Hiding/Showing Global Entities
select:
"vehicle"or"ped"or"player"name:
stringornil
Example Usage
Coordinates
The Interactions can only be invoked on the Client-Side!
Adding Coordinates
name:
stringcoords:
vector3data:
tablehideSquare:
booleanornilcheckVisibility:
booleanornilshowInVehicle:
booleanornildistance:
numberornildistanceText:
numberorniloffset:
tableorniltext:
tablex:
numbery:
numberz:
number
target:
tablex:
numbery:
numberz:
number
options:
tableoption:
indexed tablename:
stringornillabel:
stringornilicon:
stringornilkey:
stringornilduration:
numberornilonSelect:
functionornil
Example Usage
Removing Coordinates
coords:
vector3name:
stringorniloption:
nameornil
Example Usage
Hiding/Showing Coordinates
coords: vector3
name:
stringornil
Example Usage
Misc
The Interactions can only be invoked on the Client-Side!
Removing Interactions Created By Resource
resource:
stringornil
Example Usage
Last updated