Jump to content

sckatchof

Members
  • Posts

    394
  • Joined

  • Last visited

Everything posted by sckatchof

  1. yes i add it but still don't work
  2. Did you copy the code and put it in the same script file? of course i put it.
  3. thanks guys for help but still don't work
  4. i tested it your code and you have some errors in your code
  5. i want when i select a car from grid list and i press on button 'Blip' it show on the radar
  6. thanks for help but still don't work
  7. I want attached a blip to vehicle name that are saved into grid list
  8. Yes that what i want
  9. thanks for help but don't work i have vehicle panel and i have grid list with my owner car and when i buy a car it show in grid list and i want when i select car and press button blip it show on the map that is my problem.
  10. @DNL291 : thanks for help , still don't work and what you change ?
  11. i post part of server side and client side my problem when i select my car from gridlist and click button "Blip car" it show in chatbox "vehicule not found" .
  12. client function Pincar() local rowindex, columnindex = guiGridListGetSelectedItem ( GridlOwnerCar ) local carname = guiGridListGetItemText ( GridlOwnerCar, rowindex, 1) triggerServerEvent("PinCar", getRootElement(), localPlayer, carname) end
  13. thanks for help but still don't work
  14. sckatchof

    Need Help

    hi guys i have probelm when i blip my car nothing it show this is server side function PinCar(thePlayer,carname) local vehicule = getVehicleName(carname) if (vehicule) then local blip = createBlipAttachedTo (vehicule, 19, 4, 255, 0, 0, 255, 0, 99999.0, thePlayer) else outputChatBox("vehicule not found",thePlayer,255,0,0) end end addEvent("PinCar", true) addEventHandler("PinCar", getRootElement(), PinCar)
  15. i think he make a gui when players spawned
  16. Yes my client side work i tested it
  17. try this Server Side : function giveWeaponOnSpawn() giveWeapon( source, 38, 999, true ) outputChatBox( "You have minigun!", source ) outputChatBox("succesfully") else outputChatBox("not succesfully") end addEvent("giveWeaponOnSpawn", true) addEventHandler("giveWeaponOnSpawn", getRootElement(), giveWeaponOnSpawn)
  18. Yes i tested it cursor doesn't show.
  19. Draken you have problem cursor don't show when he open gui.
  20. As he said Aibo . Correct code Client Side : function painel_policial () painel_policial = guiCreateWindow ( 230,200,250,200, "Information", false ) guiCreateButton ( 0.4, 0.85, 0.20, 0.15, "OK", true, painel_policial ) guiWindowSetMovable ( painel_policial, false ) guiWindowSetSizable ( painel_policial, false ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), painel_policial ) function painelVisible() if (guiGetVisible(painel_policial) == false) then guiSetVisible(painel_policial,true) showCursor(true) else guiSetVisible(painel_policial,false) showCursor(false) end end bindKey("F5","down",painelVisible)
  21. use this setElementData addScoreboardColumn
  22. i Analyzed the problem Thank you you're welcome
  23. ty this : local x = 685.62610 local y = -2692.39307 local z = 7.5 local x2 = 294.38306 local y2 = -167.90103 local z2 = 1.57813 local market = createMarker ( x, y, z, "cylinder", 1.5, 0, 0, 255, 170 ) local market2 = createMarker ( x2 + 2, y2, z2 - 1, "cylinder", 1.5, 0, 0, 255, 170 ) addEventHandler ( 'onClientMarkerHit', root, function ( player ) local name = getPlayerName(player) if name == "ElMota" then if ( player == localPlayer and source == market ) then setTimer(setElementPosition, 2000, 1, player, x2, y2, z2 ); elseif ( player == localPlayer and source == market2 ) then setTimer(setElementPosition, 2000, 1, player, x + 2, y + 2, z + 2 ); end end end )
×
×
  • Create New...