AirCompressors
POPULAR LINKS
{:links-list}
INSTALLATION
- Open the downloaded ZIP product file and drop the folder in it somewhere in your resources folder.
- Add your product key (get it here) to the settings.ini file
- Add start BigDaddy-AirCompressors to your server.cfg.
DO NOT RENAME THE FOLDER.
If you change the name of the folder it will not function correctly so leave the name as it is.
{:is-danger}
INTEGRATED
This script is integrated with Big Daddy Scripts Vehicle Damage, but it is not required to run this script. So if you have low tires from the damage script, you can refil it with this script.
{:is-info}
CONFIGURATION
settings.ini
| SETTING | DEFAULT | DESCRIPTION |
|---|---|---|
| [licensing] | ||
| key1 | none | This is where you put your product key |
| [settings] | ||
| useMoney | true | to integrate money frameworks set to true and setup the server.lua file |
| DisplayPrompts | true | whether to show the prompts on screen or not |
| HoseCanBreak | true | if the player walks too far from the air compressor, the hose can break |
| [locales] | a place to change the language of prompts and messages |
Compressors.json - contains the list of compressor props the script will look for and work with. Most have the cost set to 0 and are free but any at a gas station can/should have a cost and charge the player if money is enabled.
{
"model": "prop_gas_airunit01", //(spawn name of object)
"offset": { //(the offset from the object where the hose attaches)
"X": -0.07,
"Y": -0.11,
"Z": 0.61,
"W": 0
},
"cost": 0.50
}
COMMANDS (if not using targeting)
/checkair When near a tire, this command will animate checking the pressure and show the actual tire pressure/health on the screen.
/airpump When near an air compressor object, this will put the hose in your hand. Then you can go to any tire and follow the prompts to fill it. Going back to the pump and doing /airpump again will put the hose away or you can press X at any time to put it away.
TARGETING
If you have ox-target or qb_target installed it will automatically use those. Just target the compressors or tires for interacting with them.