I want to create a gamemode but I have no idea where everything goes. Ive got a skeleton at the moment and have cl_init, init and shared what code goes where?
Can someone explain client side, server side etc to me simply please. I want to get a good understanding of this :D
I can further help you with stuff like this, so you dont need to post on FP. add me on steam.
[url]http://steamcommunity.com/id/voodielicker/[/url]
Skeleton:
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_redistributable/basedev_gamemode.rar[/url]
A skeleton is essentially the bare minimum to have something called a "gamemode" in your select gamemodes menu.
Client code is code that only executes on the client. If console command is in client realm, and client calls it, the code is executed on client. If server tries calling it, it won't exist ( unless you direct the client to call it from the server using Player:ConCommand( "command" ) )
Server code is code that only executes on the server. If console command is in server realm and client calls it, code is executed on server. If command is called on server, it still executes on server.
Shared code is tricky; if the client calls shared code then it is only executed on the client, the same is true if the server calls shared code then it is only executed on the server. The best example is to make a "shared" console command and call it from the client vs the server... If console command is called from client, it executes code on client, if called on server, it executes on server.
If you're just starting out, I'd recommend starting by editing base, sandbox, terrortown or darkrp before trying to create something from scratch.
Here are some useful resources:
General Learning Lua Help Thread: [url]http://facepunch.com/showthread.php?t=1337945[/url]
Problems that don't need their own thread ( All simple questions / quickies should go here ): [url]http://facepunch.com/showthread.php?t=1348923[/url]
DarkRP Help Thread ( [b]ALL[/b] DarkRP Questions go here ): [url]http://facepunch.com/showthread.php?t=1249475[/url]
Looking to [b]HIRE[/b] a coder? Read this: [url]http://facepunch.com/showthread.php?t=1257110[/url]
Coderhire Thread: [url]http://facepunch.com/showthread.php?t=1281665[/url]
Facepunch Style Fixer for GreaseMonkey: [url]https://userstyles.org/styles/65192/facepunch-fixer[/url]
[QUOTE=74pantera;45303793]I can further help you with stuff like this, so you dont need to post on FP. add me on steam.
[url]http://steamcommunity.com/id/voodielicker/[/url][/QUOTE]
Added you
Sorry, you need to Log In to post a reply to this thread.