Runtime error?
(Before I start, I know, it's a renamed DarkRP gamemode. Get over it)
Hello, I receive the following error upon joining a DarkRP job which uses the following code: PlayerSpawn = function(ply) return ply:SetBodygroup(1) end,
The error I get when joining the job is: [ERROR] A runtime error has occurred in "vcmod/shared/overrides.lua" on line 2. The best help I can give you is this:
bad argument #2 to 'VC_Defaults_SetBodygroup' (number expected, got no value)
Hints:
The responsibility for the error above lies with (the authors of) one (or more) of these files:
Any thoughts on why this code from DarkRP would be affecting the VCmod? Thanks
Out of curiosity try
ply:SetBodygroup(1,1)
This did stop the error however did not set the skin on the body group.
Edited Just incase it means anything: http://steamcommunity.com/sharedfiles/filedetails/?id=812610473 That's the pack I am using for the police models
Were you able to fix this as I am having the same issue with the same pack.