-
Posts
2,490 -
Joined
-
Days Won
18
Everything posted by N3xT
-
Impressive work! I’d like to thank everyone who participated in this release for their huge effort. Keep it up boys
-
Please read our guidelines so others can understand your issue correctly
-
adf.ly وعليكم السلام، ممنوع استخدام الروابط الربحية تم حذف الرابط الى حين تعديل الموضوع
-
Please use the code tool next time to share your codes, so it would be easier for others to read and understand your codes. I edited it for you this time. Also, please explain your issue or what you're trying to achieve properly and on the topic, not hidden within your codes because it's really hard to notice. For your request, you could use these: onClientGUIClick guiSetVisible
-
You need to trigger an event to make this happens, so when the player presses the button you send a server-side trigger, furthermore, you send it back again to his teammates and then do whatever you want to them triggerClientEvent triggerServerEvent
-
How can I delete blip attached to some element?
N3xT replied to NoviceWithManyProblems's topic in Scripting
local marker = createMarker(--[[...]]) local blip = createBlipAttachedTo(marker --[[...]]) addEventHandler("onClientMarkerHit", marker, function(he, md) destroyElement(source) destroyElement(blip) end)- 1 reply
-
- 1
-
what are you trying to achieve exactly? a command with a cooldown?
-
please, if you're not a proper english speaker just use your native forum to explain your issue properly
-
https://wiki.multitheftauto.com/wiki/SetElementData https://wiki.multitheftauto.com/wiki/GetElementData https://forum.multitheftauto.com/topic/83384-element-data/
-
Just edit these values (x, y, z)? Click here for more info
-
memory leak حدث الخروج لابد منه عشان تتجنب الـ
- 17 replies
-
- 1
-
@VenomNX removePedFromVehicle لازم تستخدم معاه ,onVehicleEnter ما ينلغي جرب local bikes = {} addEventHandler("onMarkerHit", root, function(element, matchingDimension) if not isElement(element) or not matchingDimension or getElementType(element) ~= "player" then return end if source == pizMar then triggerClientEvent(element, "onPizzaHit", resourceRoot) elseif source == pizMar2 then if getElementData(element, "pizzaOccupent") == true and not bikes[element] then bikes[element] = createVehicle(482, -74.28358, -352.48004, 1.38142, 359.447, 0.000, 93.239) if bikes[element] then warpPedIntoVehicle(element, bikes[element]) setElementData(bikes[element], "isPizzaBike", true) end end end end ) addEventHandler("onVehicleStartEnter", root, function(player) if getElementData(source, "isPizzaBike") == true then if source ~= bikes[player] then cancelEvent() end end end ) addEventHandler("onPlayerQuit", root, function() local bike = bikes[source] if bike then destroyElement(bike) bikes[source] = nil end end )
- 17 replies
-
You need to calculate your vehicle rotation & speed as far as I know. Check out this resource for more info https://community.multitheftauto.com/index.php?p=resources&s=details&id=5078
-
dxDrawText wordBreak: if set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.
-
Check your debug (debugscript 3) for errors, also make sure you added the file into your meta and you're using the correct path
-
اذا انه شغال هذا لا يدل على انه صحيح، فيه فنكشنات من الخطأ استخدامها داخل تايمر متكرر والرندر خصوصاً معلومات زي كذا المفروض ترسل التريقر عند فتح اللوحة كمثال لا اكثر ولا اقل، وكذا تكون وفرت من استهلاك معالج السيرفر وغيره من الامور الاخرى
-
triggerServerEvent("ON_RENDER_BEGIN",localPlayer); خطأ استخدام التريقر بداخل رندر
-
looks like the JSON string is invalid