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:
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 )
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!