Exports
Envi-Trap-Phone Exports Documentation
Client Exports
Phone Status
Get the player's currently active phone ID:
Drug Sales Status
Check various sale states:
Print the states:
Phone Communication
Send message from active phone:
Contact Management
Add contact to active phone:
Force the player to level up and meet a new contact:
Ped Relationships
Update and check ped relationships:
Server Exports
Phone System
Send messages and manage contacts:
Add contact to phone:
Get contact information:
contactData is a table of information
contactType is the type of contact such as "plug", "item_seller" or "regular"
Get all contacts for a phone:
contacts is a table of all contacts
Verify phone ownership:
XP System
Add XP to weed:
Remove XP from weed:
Example of getting phone ID and adding XP:
Gang Reputation System
Increase your reputation with Ballas (Lowers the rank by 100 - Lower Rank = Higher Reputation):
Decrease your reputation with Ballas (Increases the rank by 50 - Lower Rank = Higher Reputation):
Job-Based Gang Reputation System
Increase job gang reputation:
Decrease job gang reputation:
Export Tables
Client Exports Guide
Phone Functions
GetActivePhone
none
string/nil
Returns current active phone ID
SendMessage
message:string, sender:string?
boolean
Send message from active phone
AddContact
contactData:table
boolean
Add contact to active phone
MeetNewContact
none
boolean
Generate new contact meeting
Sale Status
isCornerSelling
none
boolean
Check if player is corner selling
isDoingDropOffs
none
boolean
Check if player is doing dropoffs
isBusy
none
boolean
Check if player is in active sale
Ped Relationships
UpdatePedRelationship
model:hash, face:number, amount:number
boolean
Update ped relationship
GetPedRelationship
model:hash, face:number
number
Get current relationship value
Job Gang Relationships
LoadGangData
none
nil
Load appropriate gang data
Server Exports Guide
Phone System
SendMessageToPhone
from:string, to:string, content:string
boolean
Send message between phones
AddContactToPhone
phoneId:string, contactData:table
boolean
Add contact to phone
GetContact
phoneId:string, contactNumber:string
contact:table, type:string
Get specific contact
GetAllContacts
phoneId:string
contacts:table
Get all contacts for phone
VerifyPhoneOwnership
source:number, phoneId:string
boolean
Check phone ownership
XP System
AddXP
source:number, phoneId:string, drugKey:string, amount:number
boolean
Add drug XP
RemoveXP
source:number, phoneId:string, drugKey:string, amount:number
boolean
Remove drug XP
Personal Gang Reputation
IncreaseGangRep
source:number, gangName:string, amount:number
boolean
Increase gang reputation
DecreaseGangRep
source:number, gangName:string, amount:number
boolean
Decrease gang reputation
Job-Based Gang Reputation
IncreaseJobGangRep
source:number, gangName:string, amount:number, jobName:string
boolean
Increase job gang reputation
DecreaseJobGangRep
source:number, gangName:string, amount:number, jobName:string
boolean
Decrease job gang reputation
Usage Examples
Basic Phone Management
Contact Management
Gang Reputation Management
Job-Aware Gang System
XP System Integration
Last updated