[FREE] [A RP MUST] Roleplay Essentials

Something I have been working on putting together, of just some of the most needed things in RP servers that are not enabled or disabled by default.

Features: All can be set to enabled or disabled individually using the config
Weapon hash finder
Toggle player IDs above head (F5)
Helicopter HUD and Takeoff/Landing Control
Disable Dispatch
Stop weapon drops
Stop health regen
Enable PvP
Walk injured when hurt, seek medical attention
Speed Limiter
Disable Idle Cinamatic Cam
Remove Ammunation ambiant sound
Stops Pistol Whipping
Adjust mele damage (longer fist fights)
Removes NPC cops
Add crouch option
Stops spam jumping (chance to fall if jumping)
Stamina Buff (run longer)
Headshot Nerf (chance of no one tap headshot)
Blindfire disable (stops player from shooting from cover)
Disables weapon drops (NPC dont drop weapons when killed)
Aim Assist (disabled)
Disables shooting from car (can change to drive by option with speed set)
Adjust Ped density

Download the latest release !!

11 Likes

You don’t need a thread to disable idle cam. Just call DisableIdleCamera(true) on spawn once and it’ll be disabled.

Edit: You’re doing a lot of threads where you don’t need to.

Max wanted level doesn’t need to run every frame. Same for dispatch (iirc), rewards and PvP.

function disableActions()
  -- Disabled Wanted
  SetMaxWantedLevel(0)
  -- Enable PVP
  SetCanAttackFriendly(PlayerPedId(), true, false)
  NetworkSetFriendlyFireOption(true)
  -- Disabled dispatch
  for i = 1, 12 do
    EnableDispatchService(i, false)
	end
  -- Weapons on Vehicle Enter
  DisablePlayerVehicleRewards(PlayerPedId())
  DisableIdleCamera(true)
end

Also that branding is absurd. Please don’t do that stuff. Just print a simple line stating the resource started is more than enough.

3 Likes

i am pretty sure you just copied a bunch of small scripts and just mashed them together

there are a lot of performance issues in it, i suggest you fix them all and maybe then rerelease it later

some of the issues i just looking at it :

You dont have to loop this , it will work when it is called 1 time


i dont even know why there is 2 big loop, this is a huge performance killer


As @ROCKY_southpaw , you dont need to loop anything to disable idle cam any more

i know you are trying to help other people with this release , and i appreciate it, hope you fix it and re release it later for anybody that want to use it

4 Likes

Thank you, and I am still learning. I was told that the threads might be overkill, and do plan on trying to fix all that up to be more optimized. Just learning what is what and how is where i am at

1 Like

that is great , and i dont mean what you did is bad , just trying to let you know what you can do to fix it and learn more

1 Like

I greatly appreciate it, and don’t take the criticism as a negative thought. I welcome it, can’t grow if I don’t learn. Thanks for showing examples, so I can understand a little more

1 Like

Thank you, I will apply these changes and update the branding as that was just me playing around. I understand your point though

A roleplay chat with this would be very nice!

1 Like

nice script

1 Like

Updated to have no threads for idle cam, pvp, dispatch and vehicle rewards as they were not needed. Updated branding lua to be less absurd as well. Click the link above and use the newest release (1.3.1)

you cannot disable vehicle weapons without a thread (DisablePlayerVehicleRewards)

1 Like

wait, so the vehicle rewards did need the thread?

Yes, needs to be called every frame

1 Like

Are you sure? Cause I don’t get rewards when I spawn police vehicles. :thinking:

1 Like

Yes, im sure

1 Like

Nice job

2 Likes

Resmon?

Nice job

Hello,

first of all a great idea from you to create such a script, thank you!

The script does not work for me. The console throws the following errors:

Error parsing script @Wolfhouse_RP_Essentials/client.lua in resource Wolfhouse_RP_Essentials: @WOlfhouse_RP_Essentials/client.lua:624: expected near `end’

When I fix this I get the next error:
SCRIPT ERROR: @Wolfhouse_RP_Essentials/client.lua:577: attempt to call a nil value (global ManageReticle)

Thank you for your feedback, the latest release should work better

Thank you for you fast reply!
I’m try that later & give you feedback