Change use of get client to get player from param

This commit is contained in:
Vortrex
2020-12-28 01:25:04 -06:00
parent 564a9f3548
commit e778720ea6
5 changed files with 25 additions and 25 deletions

View File

@@ -606,7 +606,7 @@ function setVehicleOwnerCommand(command, params, client) {
}
let vehicle = getPlayerVehicle(client);
let targetClient = getClientFromParams(params);
let targetClient = getPlayerFromParams(params);
if(!targetClient) {
messageClientError(client, "That player is invalid or isn't connected!");
@@ -674,7 +674,7 @@ function removeVehicleOwnerCommand(command, params, client) {
}
let vehicle = getPlayerVehicle(client);
let targetClient = getClientFromParams(params);
let targetClient = getPlayerFromParams(params);
if(!targetClient) {
messageClientError(client, "That player is invalid or isn't connected!");