Closed MuteTM closed 11 years ago
Did you forgott to set your hitman in config.lua?
Am Samstag, 15. Juni 2013 schrieb MuteTM :
With the most recent version of DarkRP (as of ~15 min before this posting, entirely vanilla), switch to an appointed "hitman" class and have another player press use on you (or do this to another player).
[Bugsy|4] Lua Error: [ERROR] gamemodes/darkrp/gamemode/modules/hitmenu/sh_init.lua:36: attempt to index local 'target' (a nil value)
- Call - gamemodes/darkrp/gamemode/modules/hitmenu/sh_init.lua:36
- v - gamemodes/darkrp/gamemode/modules/hitmenu/cl_init.lua:71
- unknown - lua/includes/modules/hook.lua:82
ServerLog: Bugsy DisconnectedDropped Bugsy from server ("Too many Lua Errors! Sorry!")
— Reply to this email directly or view it on GitHubhttps://github.com/FPtje/DarkRP/issues/692 .
Von Gmail Mobile gesendet
COMPLETELY unmodified. Nothing has been edited, straight out of the zip file (to keep any conflicts out of the question)
Yep. You first need to set your hitman in config.lua - think so.
Am Samstag, 15. Juni 2013 schrieb MuteTM :
COMPLETELY unmodified. Nothing has been edited, straight out of the zip file (to keep any conflicts out of the question)
— Reply to this email directly or view it on GitHubhttps://github.com/FPtje/DarkRP/issues/692#issuecomment-19492318 .
Von Gmail Mobile gesendet
@Neosinos Bottom of config:
-- The list of modules that are disabled. Set to true to disable, false to enable.
-- Modules that are not in this list are enabled by default.
GM.Config.DisabledModules = {
["afk"] = true,
["chatsounds"] = false,
["events"] = false,
["hungermod"] = true,
["playerscale"] = false,
["sleep"] = false,
["voterestrictions"] = true,
["hitmenu"] = false,
}
Bottom of Shared:
/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_MOB)
Don't listen to @Neosinos, he thinks every bug report is invalid.
Alright. I take it that it's intentional you can put a hit on yourself?
Yes
The timer isn't expiring after multiple tests. Setting is 240.
Edit:
Placed hit, completed, grabbed CurTime(). Can't place hit after CurTime() + 240
03:02:08 > print(CurTime())...
5670.2397460938
03:02:12 > print(CurTime()+240)...
5914.6201171875
(Wait)
03:09:43 > print(CurTime())...
6125.759765625
sh_settings.lua:
-- The minimum price for a hit
GM.Config.minHitPrice = 1000
-- The minimum distance between a hitman and his customer when they make the deal
GM.Config.minHitDistance = 150
-- The text that tells the player he can press use on the hitman to request a hit
GM.Config.hudText = "I am a hitman.\nPress E on me to request a hit!"
-- The text above a hitman when he's got a hit
GM.Config.hitmanText = "Hit\naccepted!"
-- The cooldown time for a hit target (so they aren't spam killed)
GM.Config.hitTargetCooldown = 240
Fixed, damn these parentheses
No Falco, but this did not happen to me, so I just asked some things about.
Anyways
Am Samstag, 15. Juni 2013 schrieb Falco Peijnenburg :
Fixed, damn these parentheses
— Reply to this email directly or view it on GitHubhttps://github.com/FPtje/DarkRP/issues/692#issuecomment-19493660 .
Von Gmail Mobile gesendet
With the most recent version of DarkRP (as of ~15 min before this posting, no files modified), switch to an appointed "hitman" class and have another player press use on you (or do this to another player).