Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Key events
- Citizen.CreateThread(function()
- SetNuiFocus(false, false)
- while true do
- Citizen.Wait(10)
- if IsControlJustReleased(0, Keys['Y']) and GetEntitySpeed(GetVehiclePedIsIn(GetPlayerPed(-1))) < 1 then
- print('Du klickar på Y..')
- if IsPedSittingInAnyVehicle(GetPlayerPed(-1)) then
- print('Vad har den är för värde?: ' .. tostring(vehicleType(GetVehiclePedIsUsing(GetPlayerPed(-1)))))
- if vehicleType(GetVehiclePedIsUsing(GetPlayerPed(-1))) then
- print('Allt funkar som det ska!')
- open = true
- SetNuiFocus(true, true)
- SendNUIMessage({
- action = "open"
- })
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement