Garry's Mod

Garry's Mod

Florian's Script - Character System
77 Comments
HexStrain 7 Aug, 2024 @ 11:20am 
Thank you so much, this addon is really great. U did a good job
Florian #  [author] 7 Aug, 2024 @ 9:56am 
Unfortunately I haven't been active on Garry's Mod community for a few years now, the addon is maintenance only and won't be receiving any more features in the near future. However, I try to keep my addons working through Garry's Mod updates.
AliBabaHajjHasan 7 Aug, 2024 @ 2:54am 
a way to do factions?
Florian #  [author] 17 May, 2024 @ 11:32pm 
My addon doesn't interact with God Mode in any way, I just use functions provided with DarkRP. If you experience this kind of issue, try to see if it's another addon that's adding this behavior.
HexStrain 13 May, 2024 @ 12:23pm 
Hey Florian, forget about the previous question i asked. I solved it. But i have another problem. Some players have god mode, why does this happen?
Florian #  [author] 15 Jan, 2024 @ 11:17pm 
I can guarantee that this addon is perfectly compatible with all player models (because it doesn't use predefined playermodels). This code simply checks if the player is already using a registered model, if not, it will check if it's a valid model (everything but not a red ERROR) at server level and if it's invalid, then it will use a function to define a replacement model (which will depend on your gamemode, see below) to avoid defining an ERROR.

https://github.com/FlorianLeChat/FScript-Character-System/blob/master/lua/fscript_modules/core/sh_functions.lua#L112-L139

If you're on DarkRP, it will use a job model, and if not, it will use an HL2 Citizen model which doesn't include Kleiner/Magnus. You should check your addons to see if any of them might conflict with my character system.
HexStrain 15 Jan, 2024 @ 2:57pm 
I have a problem and i don't know if this addon causes it or not. So i'm writing here.

I use custom PM's in my server. But some people seem to spawn with default scientist PM's (Kleiner, Magnus) after creating a character. I explored the codes and found this:

if PlayerModel ~= ply:GetModel() then
if util.IsValidModel(PlayerModel) then
ply:SetModel(PlayerModel)
else
ply:SetModel(FScript.GetDefaultModels()[1])
end
end


Maybe the mod doesn't register my custom PM's and ignores them, then proceeds to use the defaullt models. Could this be the problem?
Florian #  [author] 5 Dec, 2023 @ 4:07am 
Unfortunately, this is probably why people trust GmodStore more than Workshop, for "guaranteed" support.
HexStrain 5 Dec, 2023 @ 3:59am 
yeah yeah... Majority of them dont even give support for their addons
Florian #  [author] 5 Dec, 2023 @ 3:57am 
I guess people now prefer buying stupidly than looking for good addons on the Workshop or making some for their own server...
HexStrain 5 Dec, 2023 @ 3:24am 
thank you. It is amazing that how this simply works better than many paid addons on gmodstore. Sometimes i don't even understand why people buy or sell addons from there, some of them already exists in the workshop lol.
Florian #  [author] 5 Dec, 2023 @ 3:22am 
This is normally done automatically and should still work today (I tested my integration a few months ago). If it doesn't, I can always fix this issue.
HexStrain 5 Dec, 2023 @ 2:02am 
Does it automaticly gets integrated with itemstore or do i have to enable it in some sort of config
HexStrain 5 Dec, 2023 @ 2:01am 
oh shit thats very helpful thank you so much
Florian #  [author] 4 Dec, 2023 @ 11:42pm 
You can also get them with F2
HexStrain 4 Dec, 2023 @ 3:26pm 
found em

/createchar
/changechar
/editchar
/editnotes
/viewdatabase
/viewinformations
/deletechar
/deleteallchar
/saveallchar
HexStrain 4 Dec, 2023 @ 3:24pm 
where can i find the commands for this mod.
Tyron Ball 9 Aug, 2023 @ 3:26am 
merci
Florian #  [author] 9 Aug, 2023 @ 2:08am 
Toutes les commandes de chat sont disponibles via la touche F2 en jeu.
Tyron Ball 8 Aug, 2023 @ 6:36pm 
c'est quoi les commandes ?
Florian #  [author] 9 Feb, 2023 @ 6:31am 
Je pense que tu peux facilement modifier ça dans le code pour changer quelques mots et l'adapter à l'univers de ton serveur, le fonctionne restera normalement le même. Pour l'erreur que tu as mentionnée, c'est une erreur liée à Garry's Mod et non pas de mon addon (étant donné qu'il n'utilise pas le système de navigation).
NightyksiLulu 8 Feb, 2023 @ 12:28pm 
D'ailleurs, j'ai un nouveau problème avec l'addon, il me dit "Failed to load .nav file: Cannot access!" comment on lui donne l'accès ?
NightyksiLulu 8 Feb, 2023 @ 8:48am 
Salut, j'ai une question, y'a moyen de faire en sorte qui y'a une fonctionnalité, genre tu puisses changer l'addons en mode "Clone Wars". Par exemple lorsque tu crées ton personnage, à la place de Prénom c'est "Matricule" et nom de Famille c'est le surnom du clone et avoir en sorte du grade en début (en abréviation) ?
Je demande ceci, car j'aimerai l'utiliser pour mon serveur Clone Wars c'est pour ça.
Florian #  [author] 3 Feb, 2023 @ 12:21am 
Salut, merci du signalement ! Je viens de pousser une mise à jour sur GitHub et sur le Workshop pour corriger ce problème. En effet, c'était un problème lié à l'ItemStore, il semble que dans certains cas l'inventaire n'est pas disponible et peut entraîner des problèmes lors de la réinitialisation. J'espère que le correctif suffira à palier ce problème et n'hésite pas à me dire si tu trouves d'autres problèmes ! :physgun:
NightyksiLulu 2 Feb, 2023 @ 1:12pm 
J'ai trouver la situation.
En gros, faut déjà mettre l'addons dans le FTP (logique) ensuite si y'a Itemstore sur le serveur, faut supprimer toute la ligne de commande dans sv_functions.lua concernant l'Itemstore. Car y'avais une erreur qui faisais tout bugué, ça fonctionne après que j'ai supprimer les lignes

Merci pour cette addons il est excellent et continue ton travail :steamthumbsup:
NightyksiLulu 2 Feb, 2023 @ 1:04pm 
Ils sont obligé de faire /changechar pour reprendre leur personnage.
NightyksiLulu 2 Feb, 2023 @ 12:58pm 
Timer Failed! [Simple][@addons/personnage/lua/fscript_modules/core/sv_main.lua (line 8)]
NightyksiLulu 2 Feb, 2023 @ 12:58pm 
[personnage] addons/personnage/lua/fscript_modules/core/sv_functions.lua:241: attempt to index field 'Inventory' (a nil value)
1. ResetPlayer - addons/personnage/lua/fscript_modules/core/sv_functions.lua:241
2. ChangeCharacter - addons/personnage/lua/fscript_modules/changecharacter/sv_changecharacter.lua:48
3. unknown - addons/personnage/lua/fscript_modules/core/sv_main.lua:10
NightyksiLulu 2 Feb, 2023 @ 12:54pm 
Salut, lorsque les joueurs se co, ils se font réinisialiser leur personnage et n'ont pas la possibilité de reprendre leur personnage..
Библейски ПИхаю 1 Jun, 2022 @ 1:10pm 
i figured it out
thx
Florian #  [author] 31 May, 2022 @ 8:25am 
With the chat command /createchar
Библейски ПИхаю 31 May, 2022 @ 5:13am 
how to create 2 or more characters?
Florian #  [author] 4 Apr, 2022 @ 11:39am 
By default, all restrictions are set for players with the usergroup "admin": https://github.com/FlorianLeChat/FScript-Character-System/blob/20c9a526b3888582bca357a752038d7f28bb483b/lua/fscript_modules/core/sv_hooks.lua (source code)

ULX is directly related to this, however you can't restrict permissions by usergroups because CAMI is not implemented in the addon.

So if you want to edit this behavior, you have to create a Lua script to create your own hooks : https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/2015280119/1749024748623718599/ (documentation)

However, I will see to implement CAMI in the next days to avoid that people create code and use administration scripts like FAdmin/SAM or ULX.
ClitEastwood 4 Apr, 2022 @ 4:16am 
How do you setup restrictions with ulx or something? Users can freely modify other characters of other people?
Florian #  [author] 30 Mar, 2022 @ 1:13pm 
Unfortunately my addon is not responsible for its setup. If you have any problems with the Workshop content mounting, I advise you to contact Steam or the official Facepunch support.
Emily from H.R. 29 Mar, 2022 @ 9:45am 
the addon is a bit glitchy for my server so I had to remove it manually and from content pack. But still shows.
Big Floppa 29 Apr, 2021 @ 3:44am 
THANK YOU SO MUCH FOR THIS BRO
Hatsune Miku ♪ 17 Apr, 2021 @ 5:07am 
oh oof but hey what ever works works
Florian #  [author] 17 Apr, 2021 @ 4:39am 
I pushed an update on the Github version to fix this issue: https://github.com/FlorianLeChat/FScript-Character-System/commit/10bdd83ff961bb27c4465799fbdfc019cd8bba47
The workshop addon will be updated in the next few minutes.
Hatsune Miku ♪ 17 Apr, 2021 @ 3:13am 
yea sorta sorry
Florian #  [author] 17 Apr, 2021 @ 12:23am 
I guess you talk in Sandbox gamemode?
Hatsune Miku ♪ 16 Apr, 2021 @ 4:18pm 
hey florian is there a way for the characters name to show up instead for the steam name?
Hatsune Miku ♪ 14 Feb, 2021 @ 5:23pm 
oh ok thanks
Florian #  [author] 11 Feb, 2021 @ 2:30am 
You can change the number of characters through the addon settings: https://github.com/FlorianLeChat/FScript-Character-System/blob/master/lua/fscript_settings.lua#L35-L40
Hatsune Miku ♪ 10 Feb, 2021 @ 8:04pm 
also why cant we name outself more than one word like 3 or 2 words?
Hatsune Miku ♪ 20 Jan, 2021 @ 7:48am 
ok thanks just a bug i found my friend notice it as well in sandbox
Florian #  [author] 20 Jan, 2021 @ 7:46am 
No there is no Sandbox version for this addon because many servers use it in DarkRP gamemode. But I might add something to fix this issue in the next update.
Hatsune Miku ♪ 20 Jan, 2021 @ 7:41am 
is there a sandbox version? for this addon
Hatsune Miku ♪ 20 Jan, 2021 @ 7:40am 
and i use sandbox
Hatsune Miku ♪ 20 Jan, 2021 @ 7:40am 
hey florian for some reason if you get killed your model will set into the normal one you choose in sandbox