• Lua Problem
    10 replies, posted
After I changed my Server gamemode I came into this issue [Ares|2|STEAM_0:1:171771882] Lua Error: Refusing to load wac_pod_mis because it is missing Type and Base keys! Then I tried to become the job I recently coded in but my staff on duty job that I coded in when my server was still starwars rp I can become fine here are the codes for the two jobs Team_STAFF = DarkRP.createJob("Staff On Duty", { color = Color(255, 0, 0, 255), model = {"models/player/btzgerman/decayg_sniper_player.mdl"}, description = [[You are a Staff Member on Revivify Gaming]], weapons = {"weapon_physgun", "gmod_tool", "voice_amplifier", "keys"}, command = "staff", max = 0, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Staff", PlayerSpawn = function(ply) ply:SetMaxHealth(100000000000) ply:SetHealth(100000000000) ply:SetArmor(0) end, customCheck = function(ply) return table.HasValue({"Super Admin", "Owner", "Co-Owner", "ChiefofStaff", "Deputy Director", "Moderator", "Senior Moderator", "T-Mod", "EventPlanner", "TrialEventPlanner", "SeniorEventPlanner", "HeadEventPlanner", "StaffMarshal", "Admin", "SeniorAdmin", "TrialAdmin"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "", }) TEAM_GERMAN = DarkRP.createJob("Generalfeldmarshall", { color = Color(0, 0, 0, 255), model = {"models/npc_pm/de_german_highcommand_officer.mdl"}, description = [[You are the head of the German Army make your führer proud]], weapons = {"doi_atow_k98k", "doi_atow_bayonetde", "doi_atow_binocularsde", "doi_atow_p08", "doi_atow_mp40"}, command = "Generalfeldmarshall", max = 1, salary = 1000, admin = 0, vote = false, hasLicense = false, candemote = false, category = "German", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end, customCheck = function(ply) return CLIENT or table.HasValue({}, ply:Team()) end, CustomCheckFailMsg = "", }) I can't figure out what is going on if you need additional information just ask I will be watching this forum post for a reply
I read the first paragraph 2 times and I still don't understand what your problem is, and it's not clear what your error is as you put text right between it so, please, could you either post it or edit it so it looks cleaner? Also, you should use the code icon on the bottom to wrap the LUA code inside of this neat thing https://files.facepunch.com/forum/upload/1348/f105e519-1119-4375-be6e-cbbee7a001f9/image.png
I edited my first post
I see no change
There I made a more clear change that states the error that I am getting when I try to become the job that I recently coded in.
No. you just pushed your regular text, the errors, and the code all together. it looks like its all just mormal text. its hard to see where a error is, where it ends, when you talk again for information, and where the code starts and ends. Like Geferon said, use the {} feature to highlight errors and code...or atleast put them in a new line
There is that better?
yea. still no highlights, but atleast seperated
Do you know what the problem is?
Do you know what the problem is?
The problem does not lie within your jobs.lua. {[Ares|2|STEAM_0:1:171771882] Lua Error:Refusing to load wac_pod_mis because it is missing Type and Base keys!} Can you find what classname this belongs to? Is it an entity or a weapon? Because I can't find it in your jobs.lua area.
Sorry, you need to Log In to post a reply to this thread.