Seems I’m having an issue, but I don’t have a tissue
All jokes aside, I was making a function to change a player’s job appearance in darkrp.
This is the function that is causing the problem:
local function CoverJobInfo(Ply, Col, JobName, Model) team.SetColor(TEAM_UNDERCOVERPOLICE,Col) for k,v in pairs(player.GetAll()) do v:SendLua("team.SetColor(TEAM_UNDERCOVERPOLICE, Col") end Ply:updateJob(JobName) Ply:SetModel(Model) end
I’ve narrowed it down to the **Col **variable. The SendLua doesn’t want to take it. Replacing the **Col **variable with “Color(50,50,50)” fixes the problem.
Calling on the function:
CoverJobInfo(ply, Color(50,50,50), "Thief", "models/player/arctic.mdl")