-
Posts
3,267 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tete omar
-
addEventHandler("onClientGUIClick", getRootElement(), function (state) if state == "left" then if ( source == GUIEditor_Button[2] ) then local Player = getLocalPlayer() local thetext = guiGetText(GUIEditor_Edit[1]) if thetext ~= "" then triggerServerEvent("SendTexetes", getLocalPlayer(), Player, thetext) guiSetText(GUIEditor_Edit[1], "") else outputChatBox("You typed invalid text", 255, 0, 0 ) end end end end ) it's the same debugscript says: nothing " send button " doesn't do anything
-
client side GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(313,364,552,165,"support",false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Edit[1] = guiCreateEdit(22,60,443,29,"t",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(472,60,69,30,"Send",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Label[1] = guiCreateLabel(24,23,511,27,"Support window",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(144,137,230,19,"ignore this button",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(459,136,84,20,"exit",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[3],"default-bold-small") guiSetVisible(GUIEditor_Window[1], false) function showWindow() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end bindKey('f2','down', showWindow) addCommandHandler("support", showWindow) addEventHandler("onClientGuiGlick", getRootElement(), function (state) if state == "left" then if ( source == GUIEditor_Button[2] ) then local Player = getLocalPlayer() local thetext = guiGetText(GUIEditor_Edit[1]) if thetext ~= "" then triggerServerEvent("SendTexetes", getLocalPlayer(), Player, thetext) guiSetText(GUIEditor_Edit[1], "") else outputChatBox("You typed invalid text", 255, 0, 0 ) end end end end end) server side addEvent("SendTexetes", true) function SendTexetes (Player, thetext) local name = getPlayerName(Player) outputChatBox(name..': '..thetext, getRootElement(), 255,255,255) end addEventHandler("SendTexetes", getRootElement(), SendTexetes) debugscript says : nothing
-
client side addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY, ip) local ser = getPlayerSerial ( localPlayer ) local ip = triggerServerEvent("onGetPlayerIP", getRootElement()) -- is this code true ? if ( source == CopySer ) then setClipboard ( ser ) guiSetVisible(GUIEditor_Image[1], false) guiSetVisible(Note, true) playSound("other/newW.mp3") elseif ( source == CopyIP ) then setClipboard ( ip ) -- here's the bad argument.. guiSetVisible(GUIEditor_Image[1], false) guiSetVisible(Note, true) playSound("other/newW.mp3") elseif ( source == ok ) then guiSetVisible(Note, false) showCursor(false) guiSetInputEnabled(false) end end ) server side addEvent("onGetPlayerIP",true) function copyip() getPlayerIP ( source ) end addEventHandler("onGetPlayerIP",root, copyip) debugscript says: Bad argument @ setClipboard <~ client side but the serial works correctly, thanks.
-
Requests isn't allowed here
-
oh sorry fixing this part hey guys i created a bank script and i tried it and it works i give the script to my friend, and when i gone with my friend.......
-
hey guys i created a bank script and i tried it and it works .. when i gone with my friend into his port server and clicked deposit & withdraw it says with deposit lua:30: ERROR: attempt to perform arithmetic on local 'jaws' (a boolean value' and with, withdraw lua:58: ERROR: attempt to compare number with nil Knowing it works with my server WHY ? here's the lua codes server side line :30: "deposit" lua:30: ERROR: attempt to perform arithmetic on local 'jaws' (a boolean value' addEvent("depositing", true) function jerocoleman(moneyyy) if not (tonumber(moneyyy) <= 0) then local jaws = getAccountData (getPlayerAccount (source), "tete&anad") takePlayerMoney(source, moneyyy) money1 = jaws + moneyyy -- here's line 30 what's the problem ??............ setAccountData (getPlayerAccount (source), "tete&anad", money1 ) outputChatBox("Your money in the bank: " .. money1 .. "$", source, 0, 255, 0) else outputChatBox("can't deposit" .. moneyyy .. "=]", source, 255, 0, 0) end end addEventHandler( "depositing", getRootElement(), jerocoleman ) client side addEvent("depositing", true) function deposittt(thisPlayer,button,state) local theePlayer = getLocalPlayer() local hismoney = getPlayerMoney(thisPlayer) local moneey= guiGetText(GUIEditor_Edit[1]) if( tonumber(hismoney) >= tonumber(moneey)) then triggerServerEvent ("depositing", getLocalPlayer(), moneey) else outputChatBox("you can't deposit more than you got", 255, 0, 0) end end addEventHandler("onClientGUIClick", GUIEditor_Button[2], deposittt, false) server side line :58: "withdraw" lua:58: ERROR: attempt to compare number with nil addEvent("withdrawnow", true) function withdrawww(moneyyy) local bankmoney = getAccountData (getPlayerAccount (source), "tete&anad") if (tonumber(moneyyy) <= tonumber(bankmoney)) then -- here's line 58 what's the problem :\ ????? if(tonumber(moneyyy) >= 1) then money1 = bankmoney-moneyyy setAccountData (getPlayerAccount (source), "tete&anad", money1) givePlayerMoney(source, moneyyy) outputChatBox("Your money in the bank: " .. money1 .. "$", source, 255, 255, 0) else outputChatBox("Cannot witdraw" .. moneyyy .. "$", source, 255, 0, 0) end else outputChatBox("you typed a nil number", source, 255, 0, 0) outputChatBox("Your Money is:" .. bankmoney .. "$", source, 255, 0, 0) end end addEventHandler( "withdrawnow", getRootElement(), withdrawww ) client side addEvent("withdrawnow", true) function withdrawww(button,state) local moneey = guiGetText(GUIEditor_Edit[1]) triggerServerEvent ("withdrawnow", getLocalPlayer(), moneey) end addEventHandler("onClientGUIClick", GUIEditor_Button[1], withdrawww, false) hope you got me guys thanks.
-
السلام عليكم ورحمة الله وبركاته ابي مود يخلي السلاح بدال ما يطلع رصاص يطلع قنآبل او يطلع مفجرآت الخ .. يعني باختصار زي الشوب حق البيس مود 2 - ابي كود يخلي السلاح ما ينتهي يعني مو لازم يعشق السلاح السلاح على طول معه والسلام عليكم ورحمة الله وبركاته
-
Sorry if it the wrong forum, but where can i ask instead of this forum ??
-
Hey guys, i want that codes when the player fight with any gun then on every bullet a grenade or teargas or molotov it also in BASEMODE shops thanks.
-
Oh sorry i've re-login and it works
-
@karthik_184 it doesn't work it says Your account : nothing here at the label : \ @TAPL did you forgot to trigger it or something or that just a right code ?
-
Hey guys client side function GetTeTeAndAnad() triggerServerEvent('onAccountName', localPlayer) guiSetText ( GUIEditor_Label[4], tostring(hisAccount)) end addEventHandler('onClientResourceStart', root,GetTeTeAndAnad) server side addEvent('onAccountName', true) function teto() hisAccount = getAccountName end addEventHandler('onAccountName', root, teto) i want here the account name show up in " GUIEditor_Label[4] " thanks
-
I want the script that when the player talk a black thing show up over his head and show his text to the nearer than him i didn't mean the local chat i mean just only the player when press T does it exist ?
-
Thanks but i want it only restaurants
-
Is there any script open the restaurant by a marker or something ?
-
Thanks for all of you guys i found the solve and it's setElementPosition in client side Instead of spawnPlayer thanks
-
server side addEvent('onDkhl', true) addEventHandler('onDkhl', root, dkhl) function dkhl() spawnPlayer(source, 548.66711425781, -14 27.5430908203, 16.1328125) outputChatBox('You have been warped to dkhl area',source,0,255,0) end client side function dkhl() if ( source == GUIEditor_Button[12] ) then triggerServerEvent('onDkhl', localPlayer) end end addEventHandler('onClientGUIClick', root, dkhl) debugscript says: ERROR: Client triggered serverside event onDkhl, but event is not added serverside
-
Try this function CreateMyPed ( ARMY ) local af = createPed ( 287, 236.89999389648, 1970.6999511719, 18,800000 ) local af1 = createPed ( 287, 237.89999389648, 1970.6999511719, 18,800000 ) local af2= createPed ( 287, 238.89999389648, 1970.6999511719, 18,800000 ) local af3 = createPed ( 287, 239.89999389648, 1970.6999511719, 18,800000 ) addEventHandler ( "onResourceStart", getResourceRootElement(), CreateMyPed )
-
local Marker = createMarker ( -709.27990722656, 960.32800292969, 11.449862480164, "cylinder", 1.29999995, 255, 255, 255, 255 ) function galgal(hitPlayer) if (hitPlayer == localPlayer) then spawnPlayer(source, 2494.6000976563, -1692.5, 25.39999961853) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("You've been spawned into this area", source) end end addEventHandler('onClientMarkerHit', Marker, galgal) how about it ?
-
@ GTX so what @ karthik_184 ikr
-
spawnX, spawnY, spawnZ = 834.28607177734, -2019.8114013672, 12.8671875 local Marker = createMarker ( -709.27990722656, 960.32800292969, 11.449862480164, "cylinder", 1.29999995, 255, 255, 255, 255 ) addEventHandler('onClientMarkerHit', Marker,function(hitPlayer) if (hitPlayer == localPlayer) then spawnPlayer(source, spawnX, spawnY, spawnZ) outputChatBox("You've been spawned", source) end end) It doesn't work i want a simple marker when the player hit, simply spawn on an area TAPL isn't allowed to reply here
-
وش كنت تحس فيه و أنت تفتش في مواضيعي؟ هههههه viewtopic.php?f=91&t=28628&p=318338#p318338 هذا موضوعي الأول يب أعترف أني كنت حاط كود (مسروق) و تحديداً الكود كان حق آي سبورت لاكن شف آخر مشاركة في الموضوع حطو لي رابط خشيت عليه و تعلمت وسويت المود بنفسي خلال 3 أيام مب زيكم حاطين لكم مليون رابط و مليون مثال و أنتو مو فاهمين شي أنت خليك على جنب ما عندك غير علامة زائد و أرقام مدري أش تحس فيه تفكر أنك سويت أضافة للموضوع مثلاً؟ كل شوي حاط موضوع هييييلب ههههه أستريح بس يعني محسب انو ما فيه فالعالم كله مبرمج ناجح غيرك ؟ ياخي بطل الكبر الي فيك ذا يعني انا اطلب مساعدات مثل ما انت كنت تطلب ها ؟ وكل واحد يحط بوست لازم تعلق عليه وتسوي مفهومية كبيرة بس روح شوف عزوز والادمنية الخربانة الي حاطتهم عشان يدفعون لك ه وراح استمر في الاسئلة و ما ابيك انت ترد عليهة وماشاء الله تبرأت من الغة العربية وصرت أمريكي ماشاء الله وش عساني اقول غير ( مريض نفسي )