Skip to content

Commit

Permalink
Fixed a few bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
viral32111 committed Feb 25, 2018
1 parent 5a92a2e commit 94e198c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/autorun/carkeys.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CarKeys.Name = "Car Keys"

AddCSLuaFile("carkeys_config.lua")

resource.AddFile("materials/sentry/key/key.vmt")
resource.AddSingleFile("materials/sentry/key/key.vmt")
resource.AddSingleFile("materials/sentry/key/key.vtf")
resource.AddSingleFile("models/sentry/pgkey.mdl")
resource.AddSingleFile("models/sentry/pgkey.phy")
Expand Down Expand Up @@ -52,7 +52,7 @@ hook.Add("PlayerConnect", CarKeys.Name .. "VersionCheck", function()
print("[" .. CarKeys.Name .. "] Failed to get addon version! (" .. error .. ")")
end )

hook.Remove("Initialize", CarKeys.Name .. "VersionCheck")
hook.Remove("PlayerConnect", CarKeys.Name .. "VersionCheck")
end )

print("[Car Keys] Loaded Version: " .. CarKeys.Version)
print("[" .. CarKeys.Name .. "] Loaded Version: " .. CarKeys.Version)

0 comments on commit 94e198c

Please sign in to comment.