-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
At the end of the line. spawnPlayer(diedPlayer,spawnLocations[chosenSpawnLocation][1],spawnLocations[chosenSpawnLocation][2],spawnLocations[chosenSpawnLocation][3],playerSkin[diedPlayer][1] Should be: spawnPlayer(diedPlayer,spawnLocations[chosenSpawnLocation][1],spawnLocations[chosenSpawnLocation][2],spawnLocations[chosenSpawnLocation][3],playerSkin[diedPlayer][1])
-
Try this and see if it output anything in the chat. local carName = exports['veh-names']:getVehicleName(402) outputChatBox(carName)
-
spawnPlayer(diedPlayer,spawnLocations[chosenSpawnLocation][1],spawnLocations[chosenSpawnLocation][2],spawnLocations[chosenSpawnLocation][3],playerSkin[diedPlayer]) See here: playerSkin[diedPlayer] It should be: playerSkin[diedPlayer][1]
-
Show the codes and the meta you have used.
-
local carName = exports['veh-names]:getVehicleName(source) Should be: local carName = exports['veh-names']:getVehicleName(getElementModel(source)) And remove this as it doesn't make any sense. addEvent ( "getVehicleName", true ) addEventHandler ( "getVehicleName", getRootElement(), getVehicleName )
-
Try this. local stats = {73, 75, 71, 77, 78} local weapons = {[24] = 100, [26] = 100, [32] = 100, [31] = 150, [46] = 200} local pBlips = {} addEventHandler("onPlayerSpawn", root, function() takeAllWeapons(source) setPlayerMoney(source, 5000) --givePlayerMoney(source, 5000) for _, stat in ipairs(stats) do setPedStat(source, stat, 1000) end for weapon, ammo in pairs(weapons) do giveWeapon(source, weapon, ammo) end if not pBlips[source] then pBlips[source] = createBlipAttachedTo(source, 0, 2) end end) addEventHandler("onResourceStart", resourceRoot, function() for _, player in ipairs(getElementsByType("player")) do if not (isPlayerDead(player)) then pBlips[player] = createBlipAttachedTo(player, 0, 2) end end end) -- Blip system setTimer(function() for player, blip in pairs(pBlips) do if (isElement(player)) then local playerTeam = getPlayerTeam(player) if (playerTeam) then local r, g, b = getTeamColor(playerTeam) setBlipColor(blip, r, g, b, 255) else setBlipColor(blip, 255, 255, 255, 255) end else destroyElement(blip) pBlips[player] = nil end end end, 5000, 0)
-
How the player able to change the gang?
-
local pBlips = {} function onSpawn(player) takeAllWeapons(player) setPlayerMoney(player, 0) giveWeapon(player, 24, 100) setPedStat(player, 73, 1000) setPedStat(player, 75, 1000) setPedStat(player, 71, 1000) setPedStat(player, 75, 1000) setPedStat(player, 77, 1000) setPedStat(player, 78, 1000) giveWeapon(player, 26, 100) giveWeapon(player, 32, 100) giveWeapon(player, 31, 150) giveWeapon(player, 46, 200) givePlayerMoney(player, 5000) if pBlips[player] then destroyElement(pBlips[player]) pBlips[player] = nil end local playerTeam = getPlayerTeam(player) if (playerTeam) then local r, g, b = getTeamColor(playerTeam) pBlips[player] = createBlipAttachedTo(player, 0, 10, r, g, b) else pBlips[player] = createBlipAttachedTo(player, 0, 10, 255, 255, 255) end end function destroyPlayerBlip() if pBlips[source] then destroyElement(pBlips[source]) pBlips[source] = nil end end addEventHandler("onPlayerSpawn", root, function() onSpawn(source) end) addEventHandler("onPlayerQuit", root, destroyPlayerBlip) addEventHandler("onPlayerWasted", root, destroyPlayerBlip) addEventHandler("onResourceStart", resourceRoot, function() for _, p in ipairs(getElementsByType("player")) do onSpawn(p) end end)
-
لاحظ ان النافذه اول ما تسويها تكون غير مخفية افتراضياً إذا كنت تبي تخفيها تقدر تستخدم الفنكشن هذا بعد ما تسوي النافذه مباشرة تحت كود النافذه
-
addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then triggerServerEvent("Login", localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2])) elseif source == GUIEditor.button[2] then triggerServerEvent("Register", localPlayer, guiGetText(GUIEditor.edit[3]), guiGetText(GUIEditor.edit[4])) end end) ------------------------ addEvent("Hidewindow", true) addEventHandler("Hidewindow", root, function() guiSetVisible(GUIEditor.window[1], false) showCursor(false) end) addEvent("Login", true) addEventHandler("Login", root, function(user, pass) local account = getAccount(user, pass) if (account) then if logIn(source, account, pass) then outputChatBox("تم تسجيل الدخول ب نجاح", source, 210, 0, 0 , true) triggerClientEvent(source, "Hidewindow", source) end else outputChatBox("هناك خطء في الأسم او الرقم السري", source, 210, 0, 0) end end) ------------------------------------ addEvent("Register", true) addEventHandler("Register", root, function(user, pass) local account = getAccount(user, pass) if (account) then if logIn(source, account, pass) then outputChatBox("لقد سجلت و تم تسجيل الدخول", source, 210, 0, 0) triggerClientEvent(source, "Hidewindow", source) else outputChatBox("انت مسجل بالفعل", source, 210, 0, 0) triggerClientEvent(source, "Hidewindow", source) end else local account = addAccount(user, pass) if account and logIn(source, account, pass) then outputChatBox("لقد سجل و تم تسجيل الدخول", source, 210, 0, 0) triggerClientEvent(source, "Hidewindow", source) else outputChatBox("خطء في التسجيل", source, 210, 0, 0) end end end)
-
Why the hell you use this shit? for i=1, #markReady do if isElementWithinMarker ( hitElement, source ) then
-
The problem from the marker size it too small, try increase it.
-
Use for identification. function facJob( hitElement, matchingDimension ) outputDebugString('1') for i=1, #markers do if isElementWithinMarker ( hitElement, getElementByID( 'do_' .. i ) ) then local x,y,z = getElementPosition(getElementByID( 'do_' .. i )) setElementVisibleTo ( getElementByID( 'doMarker_' .. i ), root, false ) setTimer ( setElementVisibleTo, 26000, 1, getElementByID( 'do_' .. i ), root, true ) spawnPlayer ( hitElement, x,y-0.3,z, 180, getElementModel( hitElement ), 2, 0 ) setCameraTarget ( hitElement ) factoryDo = createObject( 3016, x,y-1,z+1 ) setElementInterior( factoryDo, 2 ) triggerClientEvent( 'getBone', hitElement, client ) end end end Why you don't use source? Why you create two marker?
-
Have you used it inside the event onMarkerHit or where did you used it?
-
I think you should use source instead of Marker to identify the marker that you entered it. mx, my, mz = getElementPosition(source)
-
احذفه gta_sa.set في ملف اسمه Documents\GTA San Andreas User Files تلقاه في المسار هذا
-
guiGridListSetItemText(GUIEditor.gridlist[1],Row,msgC,1,tostring(gText),false,false) guiGridListSetItemText(GUIEditor.gridlist[1],Row,plrC,2,Name,false,false) استبدل بهذا guiGridListSetItemText(GUIEditor.gridlist[1],Row,msgC,tostring(gText),false,false) guiGridListSetItemText(GUIEditor.gridlist[1],Row,plrC,Name,false,false)
