Hi, how do I disable /<job> not /job <name> /citizen or /cp. I looked through the configs and cannot find it. Can someone help me make the code for it.
Theres a way to prevent people from setting a custom job in configuration. Look harder
[QUOTE=Keosan;51315989]Theres a way to prevent people from setting a custom job in configuration. Look harder[/QUOTE]
As I stated not talking about custom jobs I'm talking about changing jobs with the / command.
[QUOTE=Moat;51316004][url]https://github.com/FPtje/darkrpmodification/blob/master/lua/darkrp_config/settings.lua#L57[/url][/QUOTE]
Still not talking about that in-game you can change JOBS not custom player jobs with /citizen or /police you and the config are talking about /job <Custom Name EX: /job This is Tottaly a Real Job
[QUOTE=Moat;51316119]Ah, misunderstood your question. My bad. You'd need to edit core files to do that I believe; which is not a good way to go about things. A lot of custom F4 menus, even the default F4 menu uses the command to change jobs. So if you'd just want to not allow people to use the command via chat, make the command variable when you're defining a job just a random string.[/QUOTE]
It's alright, anyways I'm using an NPC for jobs not F4 I have that disabled.
[QUOTE=NASA712;51315956]Hi, how do I disable /<job> not /job <name> /citizen or /cp. I looked through the configs and cannot find it. Can someone help me make the code for it.[/QUOTE]
Remove it from the gamemodes code. Its just bs when it says not to touch them, I always do and have never had any errors.
Is that REALLY true though?
[url]http://corefiles.darkrp.eu/[/url]
mmm. Might be a better solution than this(Please show if you have one) but you can do something like:
for k, v in pairs( RPExtraTeams ) do DarkRP.removeChatCommand( v.command ) end
[QUOTE=Invule;51320925]mmm. Might be a better solution than this(Please show if you have one) but you can do something like:
for k, v in pairs( RPExtraTeams ) do DarkRP.removeChatCommand( v.command ) end[/QUOTE]
[CODE]DarkRP.removeChatCommand("job")[/CODE]
[QUOTE=ZeBull;51320980][CODE]DarkRP.removeChatCommand("job")[/CODE][/QUOTE]
You can still do /citizen, /hobo, /gundealer, etc, which he didn't want. You can disable the "job" command via darkrp settings, too.
in darkrpmodification\lua\darkrp_config\settings on line 57 there is the setting to disable custom jobs. Alternatively to stop people using chat commands to change their job a quick fix would be to just make the command a completely random string of characters so someone could never guess it.
[img]http://image.prntscr.com/image/25a2d1ec38b94c6fa055c6ad212fd464.png[/img]
Sorry, you need to Log In to post a reply to this thread.