Help me find an error in LUA file?

So I recently purchased the SantosRP gamemode and I have one error that I just can’t seem to figure out:

[ERROR] gamemodes/santosrp/gamemode/init.lua:68: attempt to index field ‘SQL’ (a nil value)

I went to line 68 in my init.lua file and this is where it took me:

function GM:Tick()
self.SQL:Tick()
self.Jail:Tick()
self.License:Tick()
self.Uncon:Tick()
self.Drugs:Tick()
self.Jobs:Tick()
self.Cars:TickCarFuel()
self.Needs:Tick()
self.ChopShop:Tick()
self.Weather:Tick()
self.FireSystem:Tick()
self.PlayerDamage:Tick()
self.Econ:Tick()
end

Originally, I miscounted and thought that something around here could’ve been the problem, which is only 19 lines before 68

if not self.SQL:IsConnected() then
self.SQL:Connect( self.Config.SQLHostName, self.Config.SQLUserName, self.Config.SQLPassword, self.Config.SQLDBName )
end
end

I believe it’s either the function or this that is messing everything up. Now it could just be me being sort of noobish to all of this, but I cant seem to figure it out and would appreciate any help!

self.SQL doesn’t exist. You bought a leaked/incomplete version of the gamemode.

The way this is set up, self.SQL is referring to a value set on the gamemode table, which I assume you haven’t set up the SQL properly making it give an error before defining GAMEMODE.SQL.

But code_gs is right, you definitely bought a leaked version of Santos since I have friends who’ve done the same all with similar issues.