
sckatchof
Members-
Posts
394 -
Joined
-
Last visited
Everything posted by sckatchof
-
I Use it and what i want why gui dose not show .
-
tnx but dont work idk why.
-
thanks for help but still dont work
-
hi guys i have problem when i do /changepw nothing it show why ? Client Side : screenWidth,screenHeight = guiGetScreenSize() mainWidth = 320 mainHeight = 300 windowChangepw = guiCreateWindow(screenWidth/2-mainWidth/2,screenHeight/2-mainHeight/2,mainWidth,mainHeight,"Change Password",true) TextLabeOld = guiCreateLabel(9,40,84,18,"Old Password :",false,windowChangepw) TextLabelNewPW = guiCreateLabel(9,71,90,19,"New Password :",false,windowChangepw) editOldpw = guiCreateEdit(95,37,196,24,"",false,windowChangepw) editNewpw = guiCreateEdit(99,68,196,24,"",false,windowChangepw) ButtonChange = guiCreateButton(27,130,113,25,"Change it!",false,windowChangepw) ButtonCancel = guiCreateButton(252,130,113,25,"Cancel",false,windowChangepw) guiSetVisible(windowChangepw, false) guiWindowSetMovable(windowChangepw,false) guiWindowSetSizable(windowChangepw,false) guiLabelSetColor(TextLabeOld,150,100,0) addEventHandler( "onClientGUIClick", ButtonCancel, hidewindow ) addEventHandler( "onClientGUIClick", ButtonChange, Changepsw) .. .. function changePw() guiSetInputEnabled(true) guiSetVisible(windowChangepw, true) showCursor(true) end .. .. addCommandHandler("changepw", changePw)
-
@ Sparrow : it dont work but thnx for help @kenix : you mean that Client Side : ..... ButtonUnlocate = guiCreateButton(165,308,123,33,"UnPin",false,windowCP) .... .. function unmark() local rowindex, columnindex = guiGridListGetSelectedItem ( GriD ) playername = guiGridListGetItemText ( GriD, rowindex, 1) triggerServerEvent("unmark", getRootElement(), getLocalPlayer(), playername) end ... addEventHandler("onClientGUIClick", ButtonUnlocate, unmark)
-
thank but i have ERRO this is the blip when i select a pllayer it work function Pin(thePlayer,playername) local player = getPlayerFromName(playername) if (player) then local blip = createBlipAttachedTo (player, 41, 4, 255, 0, 0, 255, 0, 99999.0, thePlayer) else outputChatBox("Player not found",thePlayer,255,0,0) end end addEvent("pin", true) addEventHandler("pin", getRootElement(), Pin) but i have make ather button for removemark it still dont work. function removePin(thePlayer,playername) local player = getPlayerFromName(playername) if (player) then for i,v in pairs">pairs">pairs">pairs">pairs(getAttachedElements(player)) do if getElementType(v)=="blip" then destroyElement(v) end end else outputChatBox("Player not found",thePlayer,255,0,0) end end addEvent("unmark", true) addEventHandler("unmark", getRootElement(), removePin)
-
i have make a panel when i select a player i pin him i the radar and i have make ather button to remove to mark but i dont work there is my script : server side : function removePin(thePlayer,playername) local player = getPlayerFromName(playername) if (player) then setTimer(destroyElement,500,1,blip) else outputChatBox("Player not found",thePlayer,255,0,0) end end addEvent("unmark", true) addEventHandler("unmark", getRootElement(), removePin)
-
Thanks for help but it wok for all jobs i have make many job like pilot or limo driver . local vehicleMarker1 = createMarker( x, y, z, 'cylinder', 1, 255, 255, 255, 150 ) local Taxijob = "Taxi Driver" function vehicleMarkerHit ( hitElement, matchingDimension ) if getElementType ( hitElement ) == "player" and not isPedInVehicle (hitElement) then getElementData ( hitElement, "Job", Taxijob, true ) local vehicle = createVehicle ( 420, x, y, z, 0, 0, 0 ) warpPedIntoVehicle(hitElement, vehicle) end end addEventHandler( "onMarkerHit", vehicleMarker1 , vehicleMarkerHit )
-
that is my problem ==> WARING : Myscript.lua:12: bad argument @'getElementData' [expected bool at argument 3, got string 'Taxi Driver'
-
hi guys i have a small problem the script work but i have some errors : lien 12 "getElementData server side : local vehicleMarker1 = createMarker( x, y, z, 'cylinder', 1, 255, 255, 255, 150 ) function vehicleMarkerHit ( hitElement, matchingDimension ) if getElementType ( hitElement ) == "player" and not isPedInVehicle (hitElement) then getElementData ( hitElement, "Job", "Taxi Driver", true ) local vehicle = createVehicle ( 420, x, y, z, 0, 0, 0 ) warpPedIntoVehicle(hitElement, vehicle) end end addEventHandler( "onMarkerHit", vehicleMarker1 , vehicleMarkerHit )
-
hi guys i have try to make script when i chat in los stantos it show like this : (Ls)Sckatchof : my msg this is my script Server Side : local tab = { ['Los Santos'] = 'LS'; ['Las Venturas'] = 'LV'; ['San Fierro'] = 'SF'; } function chatbox(text, msgtype) local account = getAccountName(getPlayerAccount(source)) local name = getPlayerName(source) local playerX, playerY, playerZ = getElementPosition ( player ) local playerZoneName = getZoneName ( playerX, playerY, playerZ,true ) if playerZoneName == 'Los Santos' or playerZoneName == 'Las Venturas' or playerZoneName == 'San Fierro' then playerZoneName = tab[ playerZoneName ] else playerZoneName = 'None' end if (msgtype == 0) then outputChatBox("(".. playerZoneName ..")".. name ..":".. text, root, 255, 255, 255, true) end end cancelEvent ( ) addEventHandler("onPlayerChat", root, chatbox)
-
work thaaank you Keniiiix for help
-
Yes it work when i restart script but what i want when i die it show for 5 second
-
Fixed again local rootElement = getRootElement() local screenWidth, screenHeight = guiGetScreenSize() function helpText () dxDrawRectangle (((screenWidth/2)-200), (screenHeight-80), 400, 80, tocolor( 0, 0, 0, 150 )) dxDrawText ("/kill when you are buged", 0, 0, screenWidth, screenHeight-40, tocolor (255, 255, 255, 255), 0.7, 'bankgothic', "center", "bottom", false, false, false ) dxDrawText ("dont ask admin for password!", 0, 0, screenWidth, screenHeight-20, tocolor (255, 255, 255, 255), 0.7, 'bankgothic', "center", "bottom", false, false, false ) end addEventHandler("onClientRender", rootElement, helpText)
-
i have fix it but it show when i restart my script i want when i die it show local rootElement = getRootElement() local screenWidth, screenHeight = guiGetScreenSize() function respawnLS () dxDrawRectangle ( x/3.3, y/1.59, x/3.5, y/7, tocolor( 0,0,0,250 ) ) dxDrawText("Hospitals Ls",Sw/3, Sh/1.57, Sw, Sh,tocolor(0,255,255,185),0.7,"bankgothic","left","top",false,false,false) dxDrawText("you will respawn after 5 seconds",Sw/3, Sh/1.47, Sw, nSh,tocolor(255,255,0,255),0.55,"bankgothic","left","top",false,false,false)) end addEventHandler("onClientRender", rootElement, respawnLS)
-
hi guys i have problem it this script when i die it not show Client side : function HospitalLS() local screenWidth, screenHeight = guiGetScreenSize() local SW,Sh = guiGetScreenSize( ) local rootElement = getRootElement() local x,y = guiGetScreenSize() dxDrawRectangle ( x/3.3, y/1.59, x/3.5, y/7, tocolor( 0,0,0,250 ) ) dxDrawText("Hospitals Ls",Sw/3, Sh/1.57, Sw, Sh,tocolor(0,255,255,185),0.7,"bankgothic","left","top",false,false,false) dxDrawText("you will respawn after 5 seconds",Sw/3, Sh/1.47, Sw, nSh,tocolor(255,255,0,255),0.55,"bankgothic","left","top",false,false,false) end function Hospitalrespawn () addEventHandler("onClientRender",root,HospitalLS) end end addEventHandler( "onClientPlayerWasted",root,Hospitalrespawn )
-
Work ,Thank you Kenix for help
-
Yes, it's show only who in server. thank you kenix but how can i make it show for me when i login ?
-
First don't Double Poster and what is your problem ?