Installation
Follow these simple steps to install and run the FM-Restriction script.
Step 1: Add to Your Resources
Drag and drop the
FM-Restrictionfolder into your server'sresources/directory.Add the following line to your
server.cfg:
ensure FM-RestrictionStep 2: Using the Export
You can trigger the restrictions from any client script using this format:
exports['FM-Restriction']:blocking(
true, 1, -- Block shooting for 1 minute
true, 2, -- Block walking for 2 minutes
true, 3 -- Block driving for 3 minutes
)Argument
Description
Example
shoot
true/false to block shooting
true
shootTime
Duration in minutes
1
walk
true/false to block walking
true
walkTime
Duration in minutes
2
drive
true/false to block driving
true
driveTime
Duration in minutes
3
Last updated