Allow / Deny actions for peds | v1.1

You want players on your server to change their ped?
With this script you can deny actions for certain peds.

Supported actions
  • Walking & running
  • Driving a vehicle
  • Sitting in a vehicle

If you have more ideas for actions to be denied, feel free to comment :wink:

Configuration

client.lua:

-- BLACKLISTED PEDS
blacklisted = {
"mp_f_freemode_01",
}

-- FORBIDDEN ACTIONS ("allowed", "forbidden")
walk = "allowed"
drive1 = "allowed" -- driver of the vehicle
drive2 = "allowed" -- sit in the vehicle

server.lua:

-- SET DEBUG MODE ("true", "false")
debug = "false"

changePed.zip (1.5 KB)

If you have any problems, please let me know :wink:

Idea by sheriff.smiley

3 Likes

Humm i like this i might at some point use it and modify it for esx so if they log and register ped but keep the default look then they would not be able to use said action. Thanks for the release. This gave me an idea :smiley: