DeriveGamemode?

Allright im a fairly new coder to lua and i know i proberly shouldn’t start out making a gamemode, i know a few things. But i’m trying to learn as i create.
So i made a swep, now since its a gamemode from scratch i dont have a spawn menu (Q)
And i tried adding DeriveGamemode ( "sandbox ")
into shared.lua
I then into the seriousrp.txt
added “base” “sandbox”
And i still get this error?

[ERROR] gamemodes/seriousrp/gamemode/shared.lua:5: attempt to call global ‘Deriv
eGamemode’ (a string value)

  1. unknown - gamemodes/seriousrp/gamemode/shared.lua:5
  2. include - [C]:-1
    3. unknown - gamemodes/seriousrp/gamemode/init.lua:4

[CyberGaming @ xAl3xth3K1nG|2|STEAM_0:0:71196251] Lua Error:

[ERROR] gamemodes/seriousrp/gamemode/shared.lua:5: attempt to call global ‘Deriv
eGamemode’ (a string value)

  1. unknown - gamemodes/seriousrp/gamemode/shared.lua:5
  2. include - [C]:-1
    3. unknown - gamemodes/seriousrp/gamemode/cl_init.lua:1

Post the whole shared.lua.

Something overrides the function.

GM.Name = “SeriousRP”
GM.Author = “xAl3xTh3K1nG”
GM.Email = “support@cyber-gamingrp.com
GM.Website = “Cyber-GamingRP.com
DeriveGamemode ( “sandbox” )

[editline]29th September 2014[/editline]

Thats the WHOLE shared.lua file.

Make sure you’ve got “base” “sandbox” in your gamemode.txt file as well

This is my whole seriousrp.txt file:

“Gamemode”
{
“base” “sandbox”
“title” “SeriousRP”
“maps” “^rp_”
“menusystem” “1”
“workshopid” “”
}

Change “Gamemode” to your gamemode folders name

Oh gonna try that. so my folder is under garrysmod/gamemodes/seriousrp so i put seriousrp?

[editline]29th September 2014[/editline]

Amaing thanks works now!