hey lua gods, i would like to make or edit (not sure really) a script so that clients spawn with like buddy finder as default if you could give us like a template and were to put it that would be fine
thanks -Benny
Not 100 percent on what youâre asking (or how youâre asking it to be done) but in a gamemode youâd have something like:
[lua]
function GM:PlayerSpawn(ply)
ply:Give(âweapon_buddyfinderâ)âNot sure if thatâs what itâs lua file (folder) is called.
end
âor you could do that in loadout if all the players got it. (function GM:PlayerLoadout)
[/lua]
If that doesnt help, can you be more specific? Do you have any code already? Are you talking about something completely different?
If youâre doing it in sandbox, Iâd just add the ply:Give ⌠to the loadout.
Do it in PlayerLoadout not PlayerSpawn.
If youâre making it as an addon for a server (e.g. a Sandbox server) you will need to hook it to the gamemodeâs GM:PlayerLoadout.
yeah sorry its for sandbox, wheres the file i edit (or put a created one) located?