-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
الفنكشن يعطيك رقم الكولمن و الرو الي انت محدد عليه في القريد لست أقرأ الويكي ياخي
-
I just wonder what wrong with JSON? You don't need any kind of variable to make the string. JSON will convert the table to string already all you have to do is to store the string into account data or file or xml or even db.
-
I guess you have used same event name for the trigger from client to server, that's why. Also thePlayer is not defined. And here your trigger is to all players in the server, not sure but i guess it suppose to be only for one player? triggerClientEvent ( "onPlayerChooseTeam", getRootElement(), teamName )
-
Line 4 the driver seat is 0 not 1.
-
كيف اجيب رقم الكولومن و الرو؟ guiGridListGetSelectedItem
-
Was it possible to drive 15-20 sec before the K toggle code change?
-
How long?
-
Try. function setEngineStateByPlayer (playersource) local veh = getPedOccupiedVehicle (playersource) if (getPedOccupiedVehicleSeat (playersource) == 0) then if getElementData(getElementData(veh,"parent"),"fuel") <1 then return end setVehicleEngineState (veh, not getVehicleEngineState(veh)) if getVehicleEngineState(veh) == true then triggerClientEvent (playersource, "displayClientInfo", playersource,"Vehicle","Engine started!",22,255,0) else triggerClientEvent (playersource, "displayClientInfo", playersource,"Vehicle","Engine stopped!",255,22,0) end end end
-
'onClientGUIClick' -- افنت لما تضغط على القريد لست guiGridListGetSelectedItem -- تجيب رقم الكولمن و الرو الي محدد عليه في القريد لست guiGridListGetItemText -- و تجيب الكلام الي في رقم الكولمن و الرو الي جبته بالفنكشن الي فوق triggerServerEvent -- تسوي تريقر للسيرفر و ترسل الكلام الي هو عبارة عن المبلغ tonumber -- تحويل النص إلى رقم givePlayerMoney -- تعطي اللاعب المبلغ الي ارسلته من الكلينت
-
Show the function setEngineStateByPlayer.
-
I guess you want something like this: _createObject = createObject function createObject( ... ) local args = {...} local temp = _createObject( unpack(args) ) setElementDoubleSided(temp, true) return temp end
-
الكود الي انت طارحة بالموضوع فيه اخطاء واضحه بالكلينت عندك 4 كولمن فقط guiGridListAddColumn(GiveAdmin.gridlist[1], "الرتبة", 0.6); guiGridListAddColumn(GiveAdmin.gridlist[1], "الساعات المطلوبة", 0.2); guiGridListAddColumn(GiveAdmin.gridlist[1], "", 0.0) guiGridListAddColumn(GiveAdmin.gridlist[1], "", 0.0); بينما انت هنا جالس تحط كلام بكولمن رقم 6 و انت ما عندك كولمن 6 guiGridListSetItemText(GiveAdmin.gridlist[1],row,6,v[1],false,false); و هنا تجيب الكلام من كولمن رقم 6 و هو غير موجود local Name = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,6 )); و بعد تسوي تريقر للمتغير triggerServerEvent("Accept:the:request",localPlayer,Group,Price,Name); و تستخدمه بالسيرفر و هو بالأساس مافيه كولمن رقم 6 xAddToGroupFunction_ = function ( Group,Price,Name ) .. .. .. outputChatBox("* تم إضافة الرتبة مبروووك"..Name,source,0,255,0,true);
-
At first line you have two == but you suppose to have one only. Also the table isn't numeric index therefore you should use pairs instead of ipairs. Moreover the property centerOfMass is returned in table so you have table inside table.
-
^ http://i.imgur.com/9oakCGZ.png
-
Try increase the number. addEventHandler("onMarkerHit", getRootElement(), function(tElement) if getElementType(tElement) == "vehicle" then if getMarkerType(source) == "corona" then local x, y, z = getElementVelocity(tElement) setElementVelocity(tElement, x * 2.5, y * 2.5, z) end end end )
-
https://wiki.multitheftauto.com/wiki/Cl ... _functions Attach the weapon to the player hand and give the player a weapon of those exist in GTA and replace the weapon with invisible txd and dff so that you have the animation of the player holding a weapon and able to aim and try to think about the rest yourself.
-
Maybe there was not match with the name and the serial which lead to zero result, therefore empty table.
-
Try those: outputChatBox(tostring(currentAmount[1]["itemAmount"])) outputChatBox(tostring(currentAmount[1]))
-
What is the event used and why you need this loop?
-
Was this client or server?
