Pivity

Runtime error?

Last read Never
#1

(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:

No hints, sorry.

The responsibility for the error above lies with (the authors of) one (or more) of these files:

vcmod/shared/overrides.lua on line 2
gamemodes/policerp/gamemode/libraries/fn.lua on line 84
gamemodes/policerp/gamemode/libraries/fn.lua on line 84
gamemodes/policerp/gamemode/libraries/fn.lua on line 84
gamemodes/policerp/gamemode/libraries/fn.lua on line 84
gamemodes/policerp/gamemode/modules/base/sv_gamemode_functions.lua on line 728
function 'Spawn'
gamemodes/base/gamemode/player.lua on line 115
------- End of Simplerr error -------

Any thoughts on why this code from DarkRP would be affecting the VCmod? Thanks

#2

Out of curiosity try

ply:SetBodygroup(1,1)

#3

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

#4

Were you able to fix this as I am having the same issue with the same pack.

Users viewing this thread
Nobody