function sendPostaRP(thePlayer)setTimer ( function()exports.global:sendLocalMeAction(thePlayer, \"elkezdi keresgélni a levelet.\")end, 1200, 1 )setTimer ( function()exports.global:sendLocalMeAction(thePlayer, \"kiszáll a kocsiból és berakja a postaládába a címzettnek szánt levelet.\")end, 2400, 1 )setTimer ( function()exports.global:sendLocalMeAction(thePlayer, \"visszaül a járműbe.\")end, 4800, 1 )endaddEvent(\"sendPostaRP\", true)addEventHandler(\"sendPostaRP\", getRootElement(), sendPostaRP)
function varasPostaMarker(thePlayer)local vehicle = getPedOccupiedVehicle(localPlayer)if thePlayer == localPlayer and vehicle and getVehicleController(vehicle) == localPlayer and PostaM[getElementModel(vehicle)] thendeliveryStopTimer = setTimer(kovetkezoPostaMarker, 5200, 1)outputChatBox(\"várj\")triggerServerEvent(\"postaRP\", localPlayer)addEventHandler(\"onClientMarkerLeave\", marker, postaMarkerCsekkolas)--endendend
function sendPostaRP()setTimer ( function()exports.global:sendLocalMeAction(source, \"elkezdi keresgélni a levelet.\")end, 1200, 1 )setTimer ( function()exports.global:sendLocalMeAction(source, \"kiszáll a kocsiból és berakja a postaládába a címzettnek szánt levelet.\")end, 2400, 1 )setTimer ( function()exports.global:sendLocalMeAction(source, \"visszaül a járműbe.\")end, 4800, 1 )endaddEvent(\"sendPostaRP\", true)addEventHandler(\"sendPostaRP\", getRootElement(), sendPostaRP)
triggerServerEvent(\"sendPostaRP\", thePlayer)
triggerServerEvent(\"sendPostaRP\", thePlayer, localPlayer)
triggerServerEvent(thePlayer, \"sendPostaRP\", thePlayer)
bool triggerServerEvent ( string event, element theElement, [arguments...] )
setTimer ( function() triggerServerEvent(\"sendLocalMeAction\", localPlayer, localPlayer, \"elkezdi keresgélni a levelet.\")end, 1200, 1 )setTimer ( function() triggerServerEvent(\"sendLocalMeAction\", localPlayer, localPlayer, \"kiszáll a kocsiból és berakja a postaládába a címzettnek szánt levelet.\")end, 2400, 1 )setTimer ( function() triggerServerEvent(\"sendLocalMeAction\", localPlayer, localPlayer, \"visszaül a járművébe.\")end, 4800, 1 )
function sendPostaRP(player)setTimer ( function(player)exports.global:sendLocalMeAction(player, \"elkezdi keresgélni a levelet.\")setTimer ( function(player) exports.global:sendLocalMeAction(player, \"kiszáll a kocsiból és berakja a postaládába a címzettnek szánt levelet.\") setTimer ( function(player) exports.global:sendLocalMeAction(player, \"visszaül a járműbe.\") end, 1200, 1, player )end, 1200, 1, player )end, 1200, 1, player )endaddEvent(\"sendPostaRP\", true)addEventHandler(\"sendPostaRP\", getRootElement(), sendPostaRP)
function varasPostaMarker(thePlayer)local vehicle = getPedOccupiedVehicle(localPlayer)if thePlayer == localPlayer and vehicle and getVehicleController(vehicle) == localPlayer and PostaM[getElementModel(vehicle)] thendeliveryStopTimer = setTimer(kovetkezoPostaMarker, 5200, 1)outputChatBox(\"várj\")triggerServerEvent(\"postaRP\", localPlayer, localPlayer)addEventHandler(\"onClientMarkerLeave\", marker, postaMarkerCsekkolas)endend
local timers = {}local done = {}addEvent(\"sendPostaRP\", true)addEventHandler(\"sendPostaRP\", getRootElement(), function(player)if isTimer(timers[player]) thenkillTimer(timers[player])done[player] = 0enddone[player] = 0timers[player] = setTimer(function(player)if done[player] == 0 then exports.global:sendLocalMeAction(player, \"elkezdi keresgélni a levelet.\") done[player] = 1elseif done[player] == 1 then exports.global:sendLocalMeAction(player, \"kiszáll a kocsiból és berakja a postaládába a címzettnek szánt levelet.\") done[player] = 2elseif done[player] == 2 then exports.global:sendLocalMeAction(player, \"visszaül a járműbe.\") done[player] = 0 --- kész cuccosendend, 1200, 3, player)end)