-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
Hello,Guys , Will am working on my fucking script but i have problem here : local table = {} addEventHandler("onClientResourceStart",resourceRoot, function () local node = xmlLoadFile ( "skins.xml" ) if ( node ) then local skins = 0 while ( xmlFindChild ( node, "skin", skins ) ) do local skin = xmlFindChild ( node, "skin", skins ) skins = skins + 1 local name = xmlNodeGetAttribute ( skin, "name" ) local id = xmlNodeGetAttribute ( skin, "id" ) table.insert( table, {name,id}) end xmlUnloadFile ( node ) end for k, v in ipairs ( table ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, tostring(v[2]), false, false) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, tostring(v[1]), false, false) guiGridListSetItemColor(GUIEditor.gridlist[1], row, 1, 255, 0, 0) end end ) Debug : EROR : Test/Client.lua:84: attempt to call field 'insert' ( nil value ) . Regards Prestege .
-
نسيت addEventHandler('onMarkerHit',marker, function ( player ) if ( getElementType ( player ) == ( 'player' ) ) then setTimer( function ( player ) if ( ( player ) and ( isElement ( player ) ) ) then local x,y,z = getElementPosition ( player ) createExplosion ( x,y,z,6 ) end end,3500,1,player) end end ) امم اعتقد مو لازم تسوي مليون تحقق, لان اكتشاف الداخل رح يكون سريع جداً ثانياً كثرة التحققات رح تسبب لاق في السيرفر خصوصاً اذا كانت في جانب السيرفر addEventHandler('onMarkerHit', marker, function ( player ) if ( getElementType ( player ) == ( 'player' ) ) then setTimer( function ( player ) local x, y, z = getElementPosition ( player ) createExplosion ( x,y,z,6 ) end, 3500, 1, player ) end end ) اعتقد كذا يكون افضل الصراحة التحقق اكثر شيء يهمني في اي شيء اسوية ..
-
نسيت addEventHandler('onMarkerHit',marker, function ( player ) if ( getElementType ( player ) == ( 'player' ) ) then setTimer( function ( player ) if ( ( player ) and ( isElement ( player ) ) ) then local x,y,z = getElementPosition ( player ) createExplosion ( x,y,z,6 ) end end,3500,1,player) end end )
-
Does it? This is just the beginning, there will be moving clouds, interactable monsters, sound effects and perhaps some more features I can't think of right now. Yes,Just we need more pictures with new updates Good luck .
-
Hmm.. Looks good .
-
You're welcome .
-
About the spam makes browsing very slow !
iPrestege replied to iPrestege's topic in Site/Forum/Discord/Mantis/Wiki related
Yes , This works fine with me . -
No i try it but nothing -.- there's something on the race gamemode set the player name tag to white .
-
function createSpeaker(thePlayer) if not isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Admin" ) ) then return end local x, y, z = getElementPosition(thePlayer) speakerObject = createObject(2229, x, y, z-1) outputChatBox("You have Succesfully created a speaker!", thePlayer, 0, 250, 0) if (isPedInVehicle(thePlayer)) then local vehicle = getPedOccupiedVehicle(thePlayer) attachElements(speakerObject, vehicle) triggerClientEvent(root, "playTheSound", root, x, y, z, vehicle) else triggerClientEvent(root, "playTheSound", root, x, y, z) end end addCommandHandler("placespeaker", createSpeaker) function deleteSpeaker(thePlayer) if (isElement(speakerObject)) then destroyElement(speakerObject) outputChatBox("You have Succesfully destroyed the Speaker!", thePlayer, 0, 0, 255) triggerClientEvent("stopTheSound", root) else outputChatBox("Speaker is not created!", thePlayer, 250, 0, 0) end end addCommandHandler("destroyspeaker", deleteSpeaker) Try it.
-
Thank's but this is not the right section this should to be on the resources section good luck any way .
-
Hmm... Yes that's true but i don't know why this happened with race i don't know much about the race 'Game Mode ' Sorry .
-
I Test it with play 'Game Mode' And works great .
-
You have to show us the server side then to test it or see if there's any problem .
-
I Don't understand the problem .
-
About the spam makes browsing very slow !
iPrestege replied to iPrestege's topic in Site/Forum/Discord/Mantis/Wiki related
See this member post tow topics because the slow browsing : https://forum.multitheftauto.com/viewtopic.php?f=91&t=58344 -
No you have to learn somethings about lua .
-
الكوماند قديم ترى غريبة مع انك مبرمج ^ الكوماندات قليل ما استخدمها خصوصا مآ آلعب كثير اغلب وقتي بـ التصفح ..
-
هو يبي منطقة سويت لة مثال ماركر !؟ طلب مثال ي عزيزي
-
الغريب اللي يسوي و مايفتح الويكي كيف يتعلم .. البرمجة مـآهي نسخ .. لصق .. حظ .. البرمجة تتعلم بـجدية
-
Not tested try : local spots = { { 2487.6398925781, -1666.7453613281, 13.34375 }, { 2487.6398925781, -1666.7453613281, 13.34375 } } for k,v in ipairs( spots ) do createMarker ( v[1],v[2],v[3], kind, size, r, g, b, a ) end
-
Post what you can do and we will help you .