Perma-weapon system.

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:

hook.Add( "PlayerSpawn", "PermaWeps", function( pPlayer )
   local tWeapons = GetPermaWeapons( pPlayer ) -- Fetch from a database or something
   for i = 1, #tWeapons do
      pPlayer:Give( tWeapons* )
end )

[editline]28th July 2016[/editline]

Or there’s this:

“The developer of this script does not have an active developer subscription.** You will be unable to purchase the script.**”

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

[editline]28th July 2016[/editline]


Well, anyone have a script/addon to assign a player with a swep per respawn/join/etc?

sik but nube questun where du i put et
the dee elll ell

[editline]29th July 2016[/editline]

[editline]29th July 2016[/editline]

(User was banned for this post ("What are you doing" - Novangel))

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

That’s for Lua modules. lua/bin is for C++ modules.

alrighty, ill use a test-script

[editline]30th July 2016[/editline]

lua_openscript testsql.lua
Running script testsql.lua...

[ERROR] lua/testsql.lua:8: '=' expected near 'pmysql'
  1. unknown - lua/testsql.lua:0

[editline]30th July 2016[/editline]

Line 8:
pmysql.pollAll( ) ---- Polls all databases


[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.

file.Append("permasystem/Test.txt" , "content")

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