Garry's Mod

Garry's Mod

Florian's Script - Character System
77 Comments
HexStrain Aug 7, 2024 @ 6:20pm 
Thank you so much, this addon is really great. U did a good job
Florian #  [author] Aug 7, 2024 @ 4:56pm 
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 Aug 7, 2024 @ 9:54am 
a way to do factions?
Florian #  [author] May 18, 2024 @ 6:32am 
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 May 13, 2024 @ 7: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] Jan 16, 2024 @ 6:17am 
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 Jan 15, 2024 @ 9: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] Dec 5, 2023 @ 11:07am 
Unfortunately, this is probably why people trust GmodStore more than Workshop, for "guaranteed" support.
HexStrain Dec 5, 2023 @ 10:59am 
yeah yeah... Majority of them dont even give support for their addons
Florian #  [author] Dec 5, 2023 @ 10:57am 
I guess people now prefer buying stupidly than looking for good addons on the Workshop or making some for their own server...
HexStrain Dec 5, 2023 @ 10: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] Dec 5, 2023 @ 10: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 Dec 5, 2023 @ 9:02am 
Does it automaticly gets integrated with itemstore or do i have to enable it in some sort of config
HexStrain Dec 5, 2023 @ 9:01am 
oh shit thats very helpful thank you so much
Florian #  [author] Dec 5, 2023 @ 6:42am 
You can also get them with F2
HexStrain Dec 4, 2023 @ 10:26pm 
found em

/createchar
/changechar
/editchar
/editnotes
/viewdatabase
/viewinformations
/deletechar
/deleteallchar
/saveallchar
HexStrain Dec 4, 2023 @ 10:24pm 
where can i find the commands for this mod.
Tyron Ball Aug 9, 2023 @ 10:26am 
merci
Florian #  [author] Aug 9, 2023 @ 9:08am 
Toutes les commandes de chat sont disponibles via la touche F2 en jeu.
Tyron Ball Aug 9, 2023 @ 1:36am 
c'est quoi les commandes ?
Florian #  [author] Feb 9, 2023 @ 1:31pm 
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 Feb 8, 2023 @ 7: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 Feb 8, 2023 @ 3:48pm 
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] Feb 3, 2023 @ 7: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 Feb 2, 2023 @ 8: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 Feb 2, 2023 @ 8:04pm 
Ils sont obligé de faire /changechar pour reprendre leur personnage.
NightyksiLulu Feb 2, 2023 @ 7:58pm 
Timer Failed! [Simple][@addons/personnage/lua/fscript_modules/core/sv_main.lua (line 8)]
NightyksiLulu Feb 2, 2023 @ 7: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 Feb 2, 2023 @ 7:54pm 
Salut, lorsque les joueurs se co, ils se font réinisialiser leur personnage et n'ont pas la possibilité de reprendre leur personnage..
ГАВНО ГАВНО ГАВНО Jun 1, 2022 @ 8:10pm 
i figured it out
thx
Florian #  [author] May 31, 2022 @ 3:25pm 
With the chat command /createchar
ГАВНО ГАВНО ГАВНО May 31, 2022 @ 12:13pm 
how to create 2 or more characters?
Florian #  [author] Apr 4, 2022 @ 6:39pm 
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://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 Apr 4, 2022 @ 11:16am 
How do you setup restrictions with ulx or something? Users can freely modify other characters of other people?
Florian #  [author] Mar 30, 2022 @ 8: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.
Karen from H.R. Mar 29, 2022 @ 4:45pm 
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 Apr 29, 2021 @ 10:44am 
THANK YOU SO MUCH FOR THIS BRO
Hatsune Miku ♪ Apr 17, 2021 @ 12:07pm 
oh oof but hey what ever works works
Florian #  [author] Apr 17, 2021 @ 11: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 ♪ Apr 17, 2021 @ 10:13am 
yea sorta sorry
Florian #  [author] Apr 17, 2021 @ 7:23am 
I guess you talk in Sandbox gamemode?
Hatsune Miku ♪ Apr 16, 2021 @ 11:18pm 
hey florian is there a way for the characters name to show up instead for the steam name?
Hatsune Miku ♪ Feb 15, 2021 @ 12:23am 
oh ok thanks
Florian #  [author] Feb 11, 2021 @ 9: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 ♪ Feb 11, 2021 @ 3:04am 
also why cant we name outself more than one word like 3 or 2 words?
Hatsune Miku ♪ Jan 20, 2021 @ 2:48pm 
ok thanks just a bug i found my friend notice it as well in sandbox
Florian #  [author] Jan 20, 2021 @ 2:46pm 
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 ♪ Jan 20, 2021 @ 2:41pm 
is there a sandbox version? for this addon
Hatsune Miku ♪ Jan 20, 2021 @ 2:40pm 
and i use sandbox
Hatsune Miku ♪ Jan 20, 2021 @ 2:40pm 
hey florian for some reason if you get killed your model will set into the normal one you choose in sandbox