This new script allows you to create an identification card and hand it over to people, to create the card you can use the command /createid and a window will open where you can write the information about your character and once you create the id it will save so you don’t have to create an id everytime you login. Then you can use /showid to give your id to the closest player or /showid [id] to give your id to a specific player using their server id.
Features:
• Create id
• Animations
• Show id to the closest player
• Show id to a specific player
• Working while in car
• Support for ND Framework
• Support for ESX Framework
• Support for QB Framework
• Support for Custom Framework
• Support for using standalone
Framework
This resource is compatible with ND_Core but you can also integrate it with other frameworks (see config below)
Disclaimer
This resource uses the escrow system for the client and server file, but offers a nice configs. If you wan’t more features in the config you can always suggest it.
Config
config = {
openCommand = "showid", -- command that will show another person the id if the player isn't in range then you'll need to write his server id in game.
creatorCommand = "createid", -- command used to create a new id. (only if useStandalone is true)
giveDistance = 4, -- the distance that the other player needs to be to be able to use the /showid command without an id.
useStandalone = true, -- set to true if you're not using a framework. If you set it to false you will have to give the getIdentity function values.
useServerSide = false, -- this will use the getIdentity() server side if you're not using standalone.
}
-- if you're not using standalone then you can write a script to get the values into there or use one of the ones I've provided for the frameworks.
function getIdentity(source)
firstName = "John"
lastName = "Doe"
dob = "00/00/00"
gender = "male"
return firstName, lastName, dob, gender
end