Jump to content

Ivo1313

Members
  • Posts

    6
  • Joined

  • Last visited

Ivo1313's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Hello! I've been reading this article for hours and i dont get any green lights for my program, your sketch aren't working here too sadly
  2. Hello guys, i'm doing a gunshop script but i dont know how to use triggerClientEvent properly for this situations, i have the client and server program here but they're not working for now: Server marcador = createMarker(296.60345458984,-38.278450012207,1000.515625, "cylinder", 1.1, 0,100,0) setElementInterior(marcador, 1) function showPanel(thePlayer) triggerClientEvent ("Start", thePlayer) end addEventHandler("onMarkerHit", marcador, showPanel) Client function painel (hitPlayer) if ( hitPlayer == localPlayer ) then outputChatBox("aloboizaumm") if painel == false then showCursor (true) addEventHandler ("onClientRender", root,abrir) painel = true end end addEvent("Start", true) addEventHandler("Start", root, painel)
  3. Hey, thx, this worked for me
  4. Hello guys, im scripting a menu for buying car fixes, it's working just well but everytime i hit the buy button, the game registers my click as 2+ clicks, what i can do about it? Here is the function: (this one is triggered by a client event) function arrumar(player) if getPlayerMoney(client) >= 1500 then local theVehicle = getPedOccupiedVehicle(client) if theVehicle and getVehicleController (theVehicle) == client then fixVehicle(theVehicle) takePlayerMoney(client, 1500) outputChatBox("Um mecanico arrumou seu carro para você!", client, 0,255,0) else outputChatBox("Você não está em um veículo!!", client, 255,0,0) end else outputChatBox("Você não tem dinheiro suficiente para esse serviço", client, 255,0,0) end end addEvent("arrumar", true) addEventHandler("arrumar", root, arrumar)
  5. Oh, thanks for your reply, the program worked now, analysing your file i can see what i did wrong, thank you!
  6. I need some help in my script, im using onClientRender and getScreenFomWorld position but the dxDrawText wont work! heres my program: marker = createMarker(-662.33703613281,2365.9025878906,178.9553527832, "cylinder", 1.5, 0, 100, 100, 200) function Texto() if(getDistanceBetweenPoints3D(0, 0, 4+.5, getElementPosition(getLocalPlayer()))) < 20 then local coords = {getScreenFromWorldPosition(-662.33703613281,2365.9025878906,178.9553527832)} if coords[1] and coords[2] then dxDrawText("CJ", coords[1], coords[2], coords[1], coords[2], tocolor(255,0,0,255), 10, "sans", "center", "center", false, false, false, false) end end end addEventHandler("onClientRender", root, Texto)
×
×
  • Create New...