-
Posts
1,546 -
Joined
-
Last visited
Everything posted by Dimos7
-
on clientGUIClick is root not resourceRoot leson 1 also same with onAdminMute same root not resourceRoot
-
-- SERVER SIDE local x,y,z,int,dim = 355.87365722656, 151.42892456055, 1025.7890625, 3, 1 thePickup = createPickup( x, y, z, 3, 1242 ) setElementInterior( thePickup, int) setElementDimension( thePickup, dim ) try it like that
-
function toggleWindows() for _, v in ipairs(getElementsByType("player")) do local car = getPedOccupiedVehicle(v) local seat = getPedOccupiedVehicleSeat(v) if isPedInVehicle(v) then if getPedOccupiedVehicleSeat(localPlayer) == 0 then if seatWindows[seat] then if not isVehicleWindowOpen(car, 4) and not isVehicleWindowOpen(car, 2) and not isVehicleWindowOpen(car, 5) and not isVehicleWindowOpen(car, 3) then setVehicleWindowOpen(car, 4, true) setVehicleWindowOpen(car, 2, true) setVehicleWindowOpen(car, 5, true) setVehicleWindowOpen(car, 3, true) exports["chat-system"]:meChat(localPlayer, "rolls down the windows of the ".. getVehicleName(car)..".") else setVehicleWindowOpen(car, 4, false) setVehicleWindowOpen(car, 2, false) setVehicleWindowOpen(car, 5, false) setVehicleWindowOpen(car, 3, false) exports["chat-system"]:meChat(localPlayer, "rolls up the windows of the "..getVehicleName(car)..".") end else outputChatBox("This vehicle is not have window.", 255, 0, 0) end end end end end addCommandHandler("wdall", toggleWindows) local seatWindows = { [0] = 4, [1] = 2, [2] = 5, [3] = 3 } function toggleWindow() for _, v in ipairs(getElementsByType("player")) do local car = getPedOccupiedVehicle(v) local seat = getPedOccupiedVehicleSeat(v) if isPedInVehicle(v) then if seatWindows[seat] then if not isVehicleWindowOpen(car, seatWindows[seat]) then setVehicleWindowOpen(car, seatWindows[seat], true) exports["chat-system"]:meChat(localPlayer, " rolls down their window.") else setVehicleWindowOpen(car, seatWindows[seat], false) exports["chat-system"]:meChat(localPlayer, " rolls up their window.") end else outputChatBox("This vehicle is not have window.", 255, 0, 0) end end end end addCommandHandler("wd", toggleWindow) setBlurLevel(0) failed to call chat-system:meChat [ string"?"] i try call same error help in server side works fine function meChat(thePlayer, ...) local px, py, pz = getElementPosition(thePlayer) local message = table.concat({...}, " ") local players = getPlayerName(thePlayer) local nick = tostring(players):gsub("_", " ") for _, v in ipairs(getElementsByType("player")) do if isPlayerInRangeOfPoint(v, px, py, pz, 10) then if message ~="" then outputChatBox("* "..nick.." "..message, v, 194, 162, 218) end end end outputServerLog("[IC-ME] "..nick.." "..message) end <meta> <script src="s_chat.lua"/> <export function="meChat" type="shared"/> </meta>
-
resource.your resource name has kick
-
wElement = guiCreateWindow(0,0,300,300,"My Window", false) exports.global:centerWindow(wElement) tabPanel = guiCreateTabPanel ( 0, 0.04, 1, 1, true, myWindow ) myTab = guiCreateTab( "TEST TAB", tabPanel ) guiSetAlpha(wElement, 0) for _, v in ipairs(getElementChildren(wElement)) do -- GUİ Elements guiSetAlpha(v, 0) end
-
then remove 0.9 and put only 0 and done
-
C-side function SskinC () triggerServerEvent ("SetSkinPlayerJoin", root) end addEventHandler ("onClientPlayerJoin", root, SskinC) S-side function UstawSkina() setElementModel(client, 0) end addEvent("SetSkinPlayerJoin", true) addEventHandler("SetSkinPlayerJoin", root, UstawSkina) even there is a event for player join you can use but for not change your scipt here it is i hope works not tested
-
function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) -- Only create projectile if we are inside a vehicle if(vehicle)then if getElementDimension(vehicle) == 1 then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) end end end bindKey("vehicle_fire", "down", shootProjectile)
-
can provic\de all code please because i can't see nothing with that code you post
-
so you want to remove weapons the player had when it joinh the pbp zone?
-
dxDrawMaterialLine3D
-
nvm
-
local cameraLocations = {locations you want here} local cameraTimers = {} local activeLocation function changeCmaera() for index, location in ipairs(cameraLocations) do if isTimer(cameraTimers[index]) then killTimer(cameraTimers[index]) end cameraTimers[index] = setTimer( setCameraMatrix, time*index, execute, location[1], location[2], location[3], location[4], location[5], location[6]) end if isTimer(cameraTimers[0]) then killTimer(cameraTimers[0]) cameraTimers[0] = nil end cameraTimers[0] = setTimer(setCameraTarget, time*(#cameraLocations+1+, execute, localPlayer) if not activeLocation then activeLocation = 1 end if activeLocation <= #cameraLocations then local location = cameraLocations[activeLocation] setCameraMatrix(location[1], location[2], location[3], location[4], location[5], location[6]) activeLocation = activeLocation + 1 setTimer(changeCmaera, time, execute) else setCameraTarget(localPlayer) end end something like that
-
tell what exacly you want only dot and the png i didn't say jmutch for help you
-
function setblip ( thePlayer ) local player = getPedOccupiedVehicle ( thePlayer ) if isPedInVehicle (thePlayer) then createBlipAttachedTo (thePlayer, 52 ) end end
-
comondo = {} laikas = 5000 function Tele(playerSource) teleportTimerLS = setTimer(function() if not isPedInVehicle(playerSource) then setElementPosition(playerSource, 1518.88757, -1668.16504, 13.54688) comondo[playerSource] = true setTimer(function() comondo[playerSource] = false end, laikas, 1) else car = getPedOccupiedVehicle(playerSource) comondo[playerSource] = true setElementPosition(car, 1518.88757, -1668.16504, 13.54688) warpPedIntoVehicle(playerSource, car) setTimer(function() comondo[playerSource] = false end, laikas, 1) end end, 3000, 1) remain = getTimerDetails(teleportTimerLS) outputChatBox(remain.. " seconds untill teleport", playerSource, r, g, b) end addCommandHandler("ls", Tele) ------------------------------------------------------------------------------------------------------------------------- function Tele(playerSource) teleportTimerLV = setTimer(function() if not isPedInVehicle(playerSource) then setElementPosition(playerSource, 2032.60022, 1343.41199, 10.82031) comondo[playerSource] = true setTimer(function() comondo[playerSource] = false end, laikas, 1) else car = getPedOccupiedVehicle(playerSource) comondo[playerSource] = true setElementPosition(car, 2032.60022, 1343.41199, 10.82031) warpPedIntoVehicle(playerSource, car) setTimer(function() comondo[playerSource] = false end, laikas, 1) end end, 3000, 1) remain = getTimerDetails(teleportTimerLV) outputChatBox(remain.. " seconds untill teleport", playerSource, r, g, b) end addCommandHandler("lv", Tele) ------------------------------------------------------------------------------------------------------------------------- function Tele(playerSource) teleportTimerSF = setTimer(function() if not isPedInVehicle(playerSource) then setElementPosition(playerSource, -2028.97644, 148.12634, 28.83594) comondo[playerSource] = true setTimer(function() comondo[playerSource] = false end, laikas, 1) else car = getPedOccupiedVehicle(playerSource) comondo[playerSource] = true setElementPosition(car, -2028.97644, 148.12634, 28.83594) warpPedIntoVehicle(playerSource, car) setTimer(function() comondo[playerSource] = false end, laikas, 1) end end, 3000, 1) remain = getTimerDetails(teleportTimerSF) outputChatBox(remain.. " seconds untill teleport", playerSource, r, g, b) end addCommandHandler("sf", Tele) try it
-
comondo = {} laikas = 5000 function Tele(playerSource) teleportTimerLS = setTimer(function() if not isPedInVehicle(playerSource) then setElementPosition(playerSource, 1518.88757, -1668.16504, 13.54688) comondo[playerSource] = true remain = getTimerDetails(teleportTimerLS) outputChatBox(remain.. " seconds untill teleport", playerSource, r, g, b) setTimer(function() comondo[playerSource] = false end, laikas, 1) else car = getPedOccupiedVehicle(playerSource) comondo[playerSource] = true setElementPosition(car, 1518.88757, -1668.16504, 13.54688) warpPedIntoVehicle(playerSource, car) setTimer(function() comondo[playerSource] = false end, laikas, 1) end end, 3000, 1) end addCommandHandler("ls", Tele) ------------------------------------------------------------------------------------------------------------------------- function Tele(playerSource) teleportTimerLV = setTimer(function() if not isPedInVehicle(playerSource) then setElementPosition(playerSource, 2032.60022, 1343.41199, 10.82031) comondo[playerSource] = true remain = getTimerDetails(teleportTimerLV) outputChatBox(remain.. " seconds untill teleport", playerSource, r, g, b) setTimer(function() comondo[playerSource] = false end, laikas, 1) else car = getPedOccupiedVehicle(playerSource) comondo[playerSource] = true setElementPosition(car, 2032.60022, 1343.41199, 10.82031) warpPedIntoVehicle(playerSource, car) setTimer(function() comondo[playerSource] = false end, laikas, 1) end end, 3000, 1) end addCommandHandler("lv", Tele) ------------------------------------------------------------------------------------------------------------------------- function Tele(playerSource) teleportTimerSF = setTimer(function() if not isPedInVehicle(playerSource) then setElementPosition(playerSource, -2028.97644, 148.12634, 28.83594) comondo[playerSource] = true remain = getTimerDetails(teleportTimerSF) outputChatBox(remain.. " seconds untill teleport", playerSource, r, g, b) setTimer(function() comondo[playerSource] = false end, laikas, 1) else car = getPedOccupiedVehicle(playerSource) comondo[playerSource] = true setElementPosition(car, -2028.97644, 148.12634, 28.83594) warpPedIntoVehicle(playerSource, car) setTimer(function() comondo[playerSource] = false end, laikas, 1) end end, 3000, 1) end addCommandHandler("sf", Tele) that show only the timer , for damage and stop it you need event and killTimer function, replace r, g,b with numbers
-
so basicly you want 3 seconds for teleport the player if player getdamage will stop and after 1 second start except if it shot with rhino, hydra 25 seconds?
-
commando = { } laikas = 5000 function Tele( playerSource ) if (commando[playerSource]) then end setElementPosition(playerSource, 1518.88757, -1668.16504, 13.54688) commando[playerSource] = true setTimer( function() commando[playerSource] = false end, laikas, 1) if isPedInVehicle(playerSource) then car = getPedOccupiedVehicle(playerSource) commando[playerSource] = true setElementPosition(playerSource, 1518.88757, -1668.16504, 13.54688) setElementPosition(car, 1518.88757, -1668.16504, 1354688) warpPedIntoVehicle(playerSource, car) setTimer(function() commando[playerSource] = false end, laikas, 1) end end addCommandHandler( "ls",Tele) ------------------------------------------------------------------------------------------------------------------------- function Tele( playerSource ) if (commando[playerSource]) then end setElementPosition(playerSource, 2032.60022, 1343.41199, 10.82031) commando[playerSource] = true setTimer( function() commando[playerSource] = false end, laikas, 1) if isPedInVehicle(playerSource) then car = getPedOccupiedVehicle(playerSource) commando[playerSource] = true setElementPosition(playerSource, 2032.60022, 1343.41199, 10.82031) setElementPosition(car, 2032.60022, 1343.41199, 10.82031) warpPedIntoVehicle(playerSource, car) setTimer(function() commando[playerSource] = false end, laikas, 1) end end addCommandHandler( "lv",Tele) ------------------------------------------------------------------------------------------------------------------------- function Tele( playerSource ) if (commando[playerSource]) then end setElementPosition(playerSource, -2028.97644, 148.12634, 28.83594) commando[playerSource] = true setTimer( function() commando[playerSource] = false end, laikas, 1) if isPedInVehicle(playerSource) then car = getPedOccupiedVehicle(playerSource) commando[playerSource] = true setElementPosition(playerSource, -2028.97644, 148.12634, 28.83594) setElementPosition(car, -2028.97644, 148.12634, 28.83594) warpPedIntoVehicle(playerSource, car) setTimer(function() commando[playerSource] = false end, laikas, 1) end end addCommandHandler( "sf",Tele) ------------------------------------------------------------------------------------------------------------------------- try that
-
commando = { } laikas = 5000 function Tele( playerSource ) if (commando[playerSource]) then end setElementPosition(playerSource, 1518.88757, -1668.16504, 13.54688) commando[playerSource] = true setTimer( function() commando[playerSource] = false end, laikas, 1) if isPedInVehicle(playerSource) then car = getPedOccupiedVehicle(playerSource) commando[playerSource] = true setElementPosition(car, 1518.88757, -1668.16504, 1354688) warpPedIntoVehicle(playerSource, car) setTimer(function() commando[playerSource] = false end, laikas, 1) end end addCommandHandler( "ls",Tele) ------------------------------------------------------------------------------------------------------------------------- function Tele( playerSource ) if (commando[playerSource]) then end setElementPosition(playerSource, 2032.60022, 1343.41199, 10.82031) commando[playerSource] = true setTimer( function() commando[playerSource] = false end, laikas, 1) if isPedInVehicle(playerSource) then car = getPedOccupiedVehicle(playerSource) commando[playerSource] = true setElementPosition(car, 2032.60022, 1343.41199, 10.82031) warpPedIntoVehicle(playerSource, car) setTimer(function() commando[playerSource] = false end, laikas, 1) end end addCommandHandler( "lv",Tele) ------------------------------------------------------------------------------------------------------------------------- function Tele( playerSource ) if (commando[playerSource]) then end setElementPosition(playerSource, -2028.97644, 148.12634, 28.83594) commando[playerSource] = true setTimer( function() commando[playerSource] = false end, laikas, 1) if isPedInVehicle(playerSource) then car = getPedOccupiedVehicle(playerSource) commando[playerSource] = true setElementPosition(car, -2028.97644, 148.12634, 28.83594) warpPedIntoVehicle(playerSource, car) setTimer(function() commando[playerSource] = false end, laikas, 1) end end addCommandHandler( "sf",Tele) ------------------------------------------------------------------------------------------------------------------------- try that