So right now I am working on an Id Card using Derma it's going very well most of it is client side. The idea is that there is a swep that will open the menu up and will show you ID to yourself and then if you click the secondary attack it will give a person the opportunity to click e on the player to trade cards that's the server side bit. After looking Santos's RP way and Arc Bank I think I might be doing it the wrong way. And advise would be appreciated.
[QUOTE=Mrdbuffalo;51275095]I might be doing it the wrong way.[/QUOTE]
What way are you doing it now? Code?
[QUOTE=smithy285;51275332]What way are you doing it now? Code?[/QUOTE]
Trying to make it using Derma but I have got a feeling that it may be laggy making using Derma but I haven't seen it talked about. [URL="https://wiki.garrysmod.com/page/Derma_Basic_Guide"]Using this here[/URL]
[QUOTE=Mrdbuffalo;51275362]Trying to make it using Derma but I have got a feeling that it may be laggy making using Derma but I haven't seen it talked about. [URL="https://wiki.garrysmod.com/page/Derma_Basic_Guide"]Using this here[/URL][/QUOTE]
derma is ran 100% clientside, unless you're doing some unnecessary things it should have no impact on performance.
[QUOTE=Mrdbuffalo;51275362]Trying to make it using Derma but I have got a feeling that it may be laggy making using Derma but I haven't seen it talked about. [URL="https://wiki.garrysmod.com/page/Derma_Basic_Guide"]Using this here[/URL][/QUOTE]
For a simple method of creating your 'ID Card', I'd recommend simply using networked variables.
I assume there should be some sort of 'ID Number', in which case I'd use: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetNWInt]Entity:SetNWInt[/url] server side to set the variable, then use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/GetNWInt]Entity:GetNWInt[/url] to get the variable client side.
Make sure you are using the correct functions for your variable type. For example, if you wanted to network some 'text', you'd use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetNWString]Entity:SetNWString[/url]
[QUOTE=ZeBull;51275968]derma is ran 100% clientside, unless you're doing some unnecessary things it should have no impact on performance.[/QUOTE]
Yeah just getting the players id number (player id) thier name and if they are police and that's the only server staff.
Sorry, you need to Log In to post a reply to this thread.