BackGround:
I have gotten tired of all the same copy/paste "custom RP" blah blah blah, and decided to create my own custom gamemode, with different mechanics than any RP server I have seen on Gmod so far. I have 3 years of experience with Java, and have managed to grab a hold of LUA pretty quickly, but in terms of Gmod(hooks and functions) I am lost.
Help me :)
I have a few questions, and I would appreciate simple answers.
1. When a player joins, his model is some dark character, and there is no animations. Tools spawn at the crotch.(Base: sandbox). How would this be fixed? I am assuming that I would setup teams and give them models, fixing the model issue, but in regards to the tools spawning at the pubic region, and no animations for walk etc I have no clue how to fix it.
2. Is there a resource that can explain how to save data using sqlite, or just using text files? Link would be much appreciated.
Thanks for your time, and help.
[QUOTE=john55223;46135614]1. When a player joins, his model is some dark character, and there is no animations. Tools spawn at the crotch.(Base: sandbox). How would this be fixed? I am assuming that I would setup teams and give them models, fixing the model issue, but in regards to the tools spawning at the pubic region, and no animations for walk etc I have no clue how to fix it.[/QUOTE]
I'm fairly sure the dark character just has no animations or anything so once given a proper playermodel they should have animations & correctly hold things, no idea about the second question though
[QUOTE=Smt;46135667]I'm fairly sure the dark character just has no animations or anything so once given a proper playermodel they should have animations & correctly hold things, no idea about the second question though[/QUOTE]
Thank you. I was worried that I would have to make my own animations.
These might help:
[url]http://wiki.garrysmod.com/page/Player/GetPData[/url]
[url]http://wiki.garrysmod.com/page/Player/SetPData[/url]
[QUOTE=Aeternal;46136021]These might help:
[url]http://wiki.garrysmod.com/page/Player/GetPData[/url]
[url]http://wiki.garrysmod.com/page/Player/SetPData[/url][/QUOTE]
Thank you! I will look through these.
[QUOTE=john55223;46135614]
1. When a player joins, his model is some dark character, and there is no animations. Tools spawn at the crotch.(Base: sandbox).
[/QUOTE]
[url]http://wiki.garrysmod.com/page/GM/PlayerSetModel[/url]
More specifically... PlayerSpawn is supposed to hook.Call two other hooks... PlayerSetModel and PlayerLoadout; if you overwrite PlayerSpawn, don't forget to add the model and loadout hook calls.
Hey, welcome to FacePunch.
I have written over 400 tutorials and completed "systems" in Lua for Garry's Mod. I tutor and answer questions for free; feel free to add me on Steam if you need some guidance. This forum is for devs that need help working on things. Here are some resources to help you get started:
-------------------------------------------------------------
Generalized Lua Help ( Links to Wikis, Answers the question of "Where do I post a simple question or DarkRP Specific question", links to other resources compiled by forum members )
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/___welcome_docs/_welcome_general_lua_learning.lua.html[/url]
Useful Programs ( SteamCMD, Autosizer, Desktops, Process Explorer ) and Notepad++ Upgrades
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/___welcome_docs/_welcome_useful_programs_and_notepadpp_upgrades.lua.html[/url]
AcecoolDev_Base Skeletonized Dev Base Game-Mode ( Never worry about Include or AddCSLuaFile ever again; comes with New Hooks, Console Commands, Meta-Table Objects, Helper Functions, Extended Functionality, and more! )
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/___welcome_docs/_welcome_acecooldev_base_gamemode_info.lua.html[/url]
Hopefully our game-modes won't clash; I'm getting ready to launch!
Sorry, you need to Log In to post a reply to this thread.