Reliable Scripts
Encrypted & Unencrypted Options
Fast Support
Fair Prices
Encrypted & Unencrypted Options
Fair Prices
Reliable Scripts
Fast Support
Packages
Installation Instructions for gs_anklemonitor
Follow these steps to properly install and configure your new resource:
-
Download the Resource
- Go to portal.cfx.re
-
Navigate to Assets > Granted Assets >
gs_anklemonitor
- Download the resource
-
Extract the Files
-
Open the downloaded
.zip
file -
Inside, you'll find a folder named
gs_anklemonitor
-
Move the entire
gs_anklemonitor
folder into your desired server resources folder (e.g.,/resources/[scripts]
)
-
Open the downloaded
-
Add to Server Configuration
- Open your
server.cfg
-
Add the following line:
ensure gs_anklemonitor
- Open your
-
Restart the Server
- Restart your FiveM server (Important!)
-
Configure the Script (Optional)
- Navigate to
gs_anklemonitor/config.lua
- Edit the configuration options to fit your server's needs
- Navigate to
Additional documentation
Available server-sided exports:
Add an ankle monitor to a specific player:
exports.gs_anklemonitor:AddAnkleMonitor(serverId)
Remove an ankle monitor from a specific player.
exports.gs_anklemonitor:RemoveAnkleMonitor(serverId)
You can use these exports to, for instance, remove the ankle monitor from a player upon death. You can also check if a player is wearing an ankle monitor using:
local isWearingAnkleMonitor = Player(serverId).state.ankleMonitorNetId ~= nil
Inventory Items
Installation Instructions
Add the following items to your ox_inventory/data/items.lua
file:
['ankle_monitor'] = {
label = 'Ankle Monitor',
weight = 250,
},
Execute the following SQL query to add the items to the database:
INSERT INTO
`items` (`name`, `label`, `weight`, `rare`, `can_remove`)
VALUES
('ankle_monitor', 'Ankle Monitor', 0, 0, 1);
Add the following items to your qb-core/shared/items.lua
file:
['ankle_monitor'] = {
['name'] = 'ankle_monitor',
['label'] = 'Ankle Monitor',
['weight'] = 250,
['type'] = 'item',
['image'] = 'ankle_monitor.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = true,
['combinable'] = nil,
},