-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lots of changes and fixes cleanup too #27
Conversation
need more changes wait for it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before working further on the implementation of this PR, we should discuss the merits of the idea of an admin car.
help = 'Toggle Admin Car', | ||
restricted = 'admin', | ||
}, function(source) | ||
TriggerClientEvent('qb-admin:client:SaveCar', source) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this needs to be a client event. Can't the spawning and configuration of the car largely be handled server side? Is this command even useful? Admins can already do /car [model] after all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its saves the car / give owership of veh/car
@@ -122,6 +122,31 @@ RegisterNetEvent('qb-admin:server:changeplayerdata', function(Selected, Selected | |||
PlayerDataOptions[Selected](Target, Input) | |||
end) | |||
|
|||
RegisterNetEvent('qb-admin:server:SaveCar', function(mods, vehicle, plate) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should call https://qbox-project.github.io/resources/core/functions/server#spawnvehicle. It should not be calling the database directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i will do all thing what u said
Description
Checklist