Finance & Felony: Organization - Bob74/bob74_ipl GitHub Wiki
Getting the main object to interact with the organization:
FinanceOrganization = exports['bob74_ipl']:GetFinanceOrganizationObject()
Object structure
FinanceOrganization
+-- Name
| +-- Colors
| +-- black
| +-- gray
| +-- yellow
| +-- blue
| +-- orange
| +-- red
| +-- green
| +-- Fonts
| +-- font1
| +-- font2
| +-- ...
| +-- font13
| +-- Style
| +-- normal
| +-- light
| +-- name
| +-- style
| +-- color
| +-- font
| +-- Set(name, style, color, font)
+-- Office
| +-- needToLoad
| +-- loaded
| +-- target
| +-- prop
| +-- renderId
| +-- movieId
| +-- stage
| +-- Init()
| +-- Enable(state)
| +-- Clear()
Set the organization's name
Setting the name parameters.
FinanceOrganization.Name.Set(name, style, color, font)
Parameter | Description | Valid values |
---|---|---|
name | Name of the gang | any string (use \n to add a new line) |
color | Black | FinanceOrganization.Name.Colors.black |
Gray | FinanceOrganization.Name.Colors.gray |
|
Yellow | FinanceOrganization.Name.Colors.yellow |
|
Blue | FinanceOrganization.Name.Colors.blue |
|
Orange | FinanceOrganization.Name.Colors.orange |
|
Red | FinanceOrganization.Name.Colors.red |
|
Green | FinanceOrganization.Name.Colors.green |
|
style | Normal colors | FinanceOrganization.Name.Style.normal |
Lighter colors | FinanceOrganization.Name.Style.light |
|
font | Font uses to display the name | from FinanceOrganization.Name.Fonts.font1 to FinanceOrganization.Name.Fonts.font13 |
Your name is set up, now you need to display it.
FinanceOrganization.Office.Enable(state)
Parameter | Description | Valid values |
---|---|---|
state | Display the name or not | true or false |
Example: How to use in your own resources
Citizen.CreateThread(function()
FinanceOrganization = exports['bob74_ipl']:GetFinanceOrganizationObject()
-- Setting the name parameters
FinanceOrganization.Name.Set("Seems legit Ltd", FinanceOrganization.Name.Style.normal, FinanceOrganization.Name.Colors.black, FinanceOrganization.Name.Fonts.font6)
-- Enabling the name to be able to see it
FinanceOrganization.Office.Enable(true)
end)