Added static ID support and option to toggle it in config - #1202
Added static ID support and option to toggle it in config#1202itzzzpanda wants to merge 1 commit into
Conversation
|
Seems like it could be a good idea. There are some issues that I can see coming up With the config option it allows people to not use this. Which generally isn't a bad idea but since it will be used as an identifier (like citizenid, license, etc) some developers may start to use that as a unique parameter which isn't a bad thing in itself but will cause a lot of problems if people don't use that. Its one of those things where I really like the idea, but I can see a lot of potential issues down the line |
|
What you are saying is right, I think in this version I did not add a function that I think of after the PR. Basically a function like the one in commands.lua, where based on the choice, it will get you the player based on that value. I am open to pr all qb scripts to use this structure. But wanna know before if it has a chance to be added |
There was a problem hiding this comment.
Hm, I feel like the whole "CreatePlayerId" functionality and so on is unneeded, aswell as the adding of another "userId" column.
If this is to be implemented, we should definentiely just use the already existing "id" column. As to reduce duplication, improve backwards compatibility, and so on.
This could've been / should be a lot simpler, this feels way too complex for no reason, it just creates unnecessary "breaking points".
Thanks for the opinion. This would've been a simpler modification, but there are cases where people do not want to use this static ID, and in a future update there may be a security patch. Done this so it is not required to do this. If making an obligation to use static ids, It'll be way easier |
|
This PR has had 60 days of inactivity & will close within 7 days |
Added Static IDs Support . Option to toggle the creation of it.
Files Changed:
config.luaserver/commands.luaserver/functions.luaserver/player.luaserver/main.luaMuch Love