Jump to content

Best-Killer

Members
  • Posts

    494
  • Joined

  • Last visited

Everything posted by Best-Killer

  1. same problem nothing showing debug
  2. 000 errors nothing showing
  3. i did other one pls check it gui not showing local locs = { { 1072.6, -1385.51, 13.88, 139 } } local peds = { } for i, v in ipairs ( locs ) do local x, y, z, rot = unpack ( v ) peds[i] = createPed ( 57, x, y, z, rot ) exports.SAEGJobs:create3DText ( "Lottery", { x, y, z }, { 255, 255, 0 }, nil, { } ) setElementFrozen ( peds[i], true ) addEventHandler ( "onClientPedDamage", peds[i], cancelEvent ) end function onPedClick(button, state, absX, absY, wx, wy, wz, element) if (element and getElementType(element) == "ped" and state=="down") then local x, y, z = getElementPosition(localPlayer) if (element == peds[i]) then if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then guiSetVisible(GUIEditor.window[1], true) showCursor (true) end end end end addEventHandler("onClientClick", root, onPedClick)
  4. nothing
  5. same problem
  6. thanks work bro bro i have drug dev script and now when i add lottery peds when i click on ped when i'm not as criminal the drug dev outputchatbox showing pls tell me the problem code : local ped = createPed(29, 1602.55, -1489.33, 13.59,180) setElementFrozen ( ped, true ) function showwindowdr () local visibe = guiGetVisible(GUIEditor.window[1]) if visibe == false then showCursor(true) guiSetVisible(GUIEditor.window[1],true) end end addEvent( "showwindowdr", true ) addEventHandler ( "showwindowdr", getRootElement(), showwindowdr) function onPedClick(button, state, absX, absY, wx, wy, wz, element) if (element and getElementType(element) == "ped" and state=="down") then if getTeamName(getPlayerTeam(getLocalPlayer())) ~= "Criminals" then outputChatBox("Drug Delivery: You must be criminal.",255,0,0) return end local x, y, z = getElementPosition(localPlayer) if (element == ped) then if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then guiSetVisible(GUIEditor.window[1], true) showCursor (true) end end end end addEventHandler("onClientClick", root, onPedClick)
  7. thanks but local Peds = { -- id skin , x,y,z , Rotation {14,1536.6, -1663.82, 13.55,260}, {14,1536.6, -1663.82, 13.55,260}, } for _,v in ipairs ( Peds ) do createPed(v[1],v[2],v[3],v[4],v[5]) end function onPedClick(button, state, absX, absY, wx, wy, wz, element) if (element and getElementType(element) == "ped" and state=="down") then local x, y, z = getElementPosition(localPlayer) if (element == Peds) then if getDistanceBetweenPoints3D(x, y, z, wx, wy, wz)<=3 then guiSetVisible(GUIEditor.window[1], true) showCursor (true) end end end end addEventHandler("onClientClick", root, onPedClick) when i click on the peds gui not showing
  8. ok guys pls how to make peds table ? i mean like : local peds = { createPed(14, 1536.6, -1663.82, 13.55,260) createPed(14, 1536.6, -1663.82, 13.55,260) } i tried with that but not working any one can tell me ?
  9. example wiki wiki what i need to use for that things after making gui
  10. i need example to make ATM's , Lottery
  11. Sloved
  12. i tried with that bro Marker = createMarker(618.87, 892.12, -37.13-1, "cylinder", 1.3, 255,0,0, 70, root) local team = getTeamFromName("Staff") addEventHandler("onResourceStart",resourceRoot, function () for _,players in ipairs (getElementsByType("Player")) do if getPlayerTeam(players) == team then setElementVisibleTo ( Marker, players, true ) else setElementVisibleTo ( Marker, players, false ) end end end) addEventHandler("onMarkerHit", iron_sell_marker, sell_iron) Bad Argument getElementData Expected at argument 1 got nill Bad Argument setElmentVisibleTo expected element at argument 2 got boolean
  13. expected element at argument 1 got nill
  14. thanks u
  15. i tried with that function Location2() markerlocation2 = createMarker (-2642.98, 1371.07, 7.16, "cylinder", 4,238, 44, 44, 255) blipSF = createBlipAttachedTo (markerlocation2, 51) addEventHandler( "onClientMarkerHit", markerlocation2, function ( hitPlayer, d ) if isElement(markerlocation2) then destroyElement(markerlocation2) destroyElement(blipSF) end triggerServerEvent("doPayClient2", hitPlayer, localPlayer) end ) end addEvent("finish", true) addEventHandler( "finish", root, function(vehicle) if getElementData ( "OwnerOfThisVehicle") == source then destroyElement (vehicle) end end i got that : expected element at argument 1 got string ownerOfThinsVehicle
  16. [/lua]addEvent("givePVehicle", true) addEventHandler( "givePVehicle", root, function() local vehicle = createVehicle (482,1605.42, -1472.97, 13.58,0,0,0) setElementData (vehicle, "OwnerOfThisVehicle", source) warpPedIntoVehicle(source, vehicle) end )[/lua]
  17. bad argument getElementData expected element at argument 1 got nill addEvent("PayClient", true) addEventHandler( "PayClient", root, function() givePlayerMoney(source, 2000) setPlayerWantedLevel(source, getPlayerWantedLevel(source)+1) if getElementData (vehicle, "OwnerOfThisVehicle") == source then destroyElement (vehicle) end end )
  18. What do you mean Job? example when player get police job or criminal job the marker showing to the player only when he get the job (police or criminal)
  19. oh sory i mean marker showing only when player get Job
  20. How to make blip showing only when player get the job !! ?
  21. the problem not geting localPlayer - say to some one test with u u will see
  22. ye
  23. not work
  24. function Location1() markerlocation1 = createMarker (2661.95, -1429.37, 29.49, "cylinder", 4, 238, 44, 44, 255) blipLS = createBlipAttachedTo (markerlocation1, 51) addEventHandler( "onClientMarkerHit", markerlocation1, function ( hitPlayer, d) if isElement(markerlocation1) then destroyElement(markerlocation1) destroyElement(blipLS) end triggerServerEvent("Pay", hitPlayer, localPlayer) end ) end function Location2() markerlocation2 = createMarker (-2642.98, 1371.07, 7.16, "cylinder", 4,238, 44, 44, 255) blipSF = createBlipAttachedTo (markerlocation2, 51) addEventHandler( "onClientMarkerHit", markerlocation2, function ( hitPlayer, d ) if isElement(markerlocation2) then destroyElement(markerlocation2) destroyElement(blipSF) end triggerServerEvent("pay2", hitPlayer, localPlayer) end ) end function Location3() markerlocation3 = createMarker (1064.73, 2342.83, 9.82, "cylinder", 4, 238, 44, 44, 255) blipLV = createBlipAttachedTo (markerlocation3, 51) addEventHandler( "onClientMarkerHit", markerlocation3, function ( hitPlayer, d) if isElement(markerlocation3) then destroyElement(markerlocation3) destroyElement(blipLV) end triggerServerEvent("pay3", hitPlayer, localPlayer) end ) end when player hit marker he get the money but other players the marker + blip destroy what is the problem !
  25. Thanks You <3 <3 <3 So Much
×
×
  • Create New...