• Beginner looking to code a function he can't find anywhere else.
    0 replies, posted
Hi, I'd like to start to learn a bit more about Lua to help me patch addons to my server as well as to enhance currently installed mods. Currently however one of the most valuable functions that I'd like, I cannot find as an addon (surprise surprise). I'd like to attempt to create a simple tool addon for the toolgun that creates an entity/weapon/item (Copies the right click "Spawn with Toolgun" function, etc that respawns with a simple slider UI to edit the time to respawn. Currently I've been able to find a very poor workaround in permapropsing a spawned entity which replaces itself after a gmod_admin_cleanup but that is definitely not ideal to the permanency of a server which is why I'd like to embark on this task. As I've been doing a bit of poking and proding to set my server up to as far as I have, I have laymans knowledge of Lua coding which mostly can be summed up with "Googling and value replacing". Ideally also this entity spawner won't just vomit them over and over, but only when the object has been taken from its spawn location. Most preferably I'd like to make this a Tool script and not a new tool so that I can be more concerned on the respawning properties of the entity and less on the tool that places the entity. Cheers!
Sorry, you need to Log In to post a reply to this thread.