@Al3grab: Do you even know what are you saying? because it makes no sense .
function push (thePlayer, commandName, namepart)
local player = findPlayer(namepart)
if (not player) then
outputChatBox("* /push: player not found", thePlayer)
else
local vehicle = getPedOccupiedVehicle(player)
if (not vehicle) then outputChatBox("* /push: This player is not in a vehicle", thePlayer) return end
local x,y,z = getElementVelocity(vehicle)
setElementVelocity ( vehicle, x, y, z + 0.25 )
end
end
addCommandHandler("push", push)
function findPlayer(name)
if not name then return false end
local name = name:lower()
for i, p in ipairs(getElementsByType("player")) do
local fullname = getPlayerName(p):lower()
if string.find(fullname:gsub("#%x%x%x%x%x%x", ""), name, 1, true) then
return p
end
end
return false
end