I have never coded in Lua before today, and I’m trying to make an addon… Have I messed up horribly yet on the init.lua?
AddCSLuaFile( "cl_init.lua" ) AddCSLuaFile( "shared.lua" ) include( "shared.lua" ) --When a car touches the race line, announce it. ENT=="3d_raceline" if ENT:StartTouch(ENT) then print("It Works!") end if sk_allowdeath == 0 and if player.GetAll(Entity:Health()) < 100 then player.GetAll(Entity:SetHealth(100)) print("Set to 100") end
sk_allowdeath being a setting from the addon file
Will it run properly?