sckatchof
Members-
Posts
394 -
Joined
-
Last visited
Everything posted by sckatchof
-
yes i add it but still don't work
-
Did you copy the code and put it in the same script file? of course i put it.
-
thanks guys for help but still don't work
-
i tested it your code and you have some errors in your code
-
i want when i select a car from grid list and i press on button 'Blip' it show on the radar
-
thanks for help but still don't work
-
I want attached a blip to vehicle name that are saved into grid list
-
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.
-
@DNL291 : thanks for help , still don't work and what you change ?
-
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" .
-
client function Pincar() local rowindex, columnindex = guiGridListGetSelectedItem ( GridlOwnerCar ) local carname = guiGridListGetItemText ( GridlOwnerCar, rowindex, 1) triggerServerEvent("PinCar", getRootElement(), localPlayer, carname) end
-
thanks for help but still don't work
-
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)
-
i think he make a gui when players spawned
-
Yes my client side work i tested it
-
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)
-
Yes i tested it cursor doesn't show.
-
Draken you have problem cursor don't show when he open gui.
-
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)
-
use this setElementData addScoreboardColumn
-
i Analyzed the problem Thank you you're welcome
-
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 )
