• Perma-weapon system.
    18 replies, posted
OH MY GOD I CANT FIND ANY (free) PERMANET WEAPON SYSTEMS. I NEED ONE. WHERE. Mainly for DarkRP. [editline]28th July 2016[/editline] Sry for the cancer. I just CAN NOT find one...
You can do this yourself if you have a shop set up for buying the weapons: [code]hook.Add( "PlayerSpawn", "PermaWeps", function( pPlayer ) local tWeapons = GetPermaWeapons( pPlayer ) -- Fetch from a database or something for i = 1, #tWeapons do pPlayer:Give( tWeapons[i] ) end end )[/code] [editline]28th July 2016[/editline] Or there's this: [url]https://scriptfodder.com/scripts/view/515/darkrp-permanent-weapon-system[/url]
"The developer of this script does not have an active developer subscription.[B] You will be unable to purchase the script.[/B]" Ty for lil script. [editline]28th July 2016[/editline] Hey, I can't use the MYSQL thing, cause im missing a mysqloo module. Can someone link me a WORKING download? [editline]28th July 2016[/editline] I MAY have found one [url]https://github.com/CloudSixteen/Clockwork/raw/master/Clockwork/garrysmod/lua/bin/gmsv_mysqloo_linux.dll[/url] [editline]28th July 2016[/editline] Nope .
Well, anyone have a script/addon to assign a player with a swep per respawn/join/etc?
[url]https://facepunch.com/showthread.php?t=1442438[/url]
sik but nube questun where du i put et the dee elll ell [editline]29th July 2016[/editline] [IMG]http://i.imgur.com/8VG2W5x.mp4[/IMG] [editline]29th July 2016[/editline] [I][IMG]http://i.imgur.com/8VG2W5x.gif[/IMG][/I] [highlight](User was banned for this post ("What are you doing" - Novangel))[/highlight]
lua/bin. It's in the OP.
ok ty [editline]30th July 2016[/editline] Garrysmod/lua/bin? I dont see a bin in /lua
Create the directory.
I have lua/includes/modules, tho
[QUOTE=ZombieKingAAA;50799819]I have lua/includes/modules, tho[/QUOTE] That's for Lua modules. lua/bin is for C++ modules.
alrighty, ill use a test-script [editline]30th July 2016[/editline] [CODE]lua_openscript testsql.lua Running script testsql.lua... [ERROR] lua/testsql.lua:8: '=' expected near 'pmysql' 1. unknown - lua/testsql.lua:0 [/CODE] [url]https://www.youtube.com/watch?v=czLYl4fM8yk[/url] [editline]30th July 2016[/editline] Line 8: pmysql.pollAll( ) ---- Polls all databases y [editline]30th July 2016[/editline] (The fact you dont get money for this is disturbing) [editline]30th July 2016[/editline] maybe ill do local-files instead :)))))
I don't know how to help without you posting any code excerpts.
Eh, ill use local files. Quick question, how can I append to a DIRECTORY? I have: file.Append("Test.txt" , "content") But it puts it in /data, but i want to make a directory, "Testdir", and put "Test.txt" in the dir "Testdir"
The path is relative to data. You cannot write anywhere else other than data
Yes, but I can make a sub-folder in the data directory and write to it (somehow)?
Yes, you can. [code]file.Append("permasystem/Test.txt" , "content")[/code] would write a file into data/permasystem. You just need to set a path, thats all
Ah, thanks. Can I substitute 'test.txt' with a variable?
Assuming you do it correctly, yes
Sorry, you need to Log In to post a reply to this thread.