use https://wiki.multitheftauto.com/wiki/GetElementModel and source
addEventHandler("onClientVehicleEnter", root,
function(thePed, seat)
local vehid = getElementModel(source)
local playerskin = getElementModel(localPlayer)
if (vehid ~= 596) then return end
if (playerskin == 280) then
playSound("beep.mp3")
outputChatBox("#898c8f<<#2c469cNeXoN Roleplay#898c8f>> #0f5720Sikeress belépés", 255, 255, 255, true)
PDMenu = true
else
playSound("beep.mp3")
outputChatBox("#898c8f<<#2c469cNeXoN Roleplay#898c8f>> #0f5720Sikertelen belépés", 255, 255, 255, true)
end
end)