undefined
Members-
Posts
500 -
Joined
-
Last visited
Everything posted by undefined
-
Hi guys. Im change to my server version 1.3.5 to 1.4. But someone scripts give some warning. What is this warning? [ Note: This scripts is not give warning on 1.3.5 ]
-
I'm try to do but can't. Can you give some insight?
-
Hi guys. Im work on the new freeroam. I have question on the map option. When the player click on the map image, how to get map position?
-
Hi guys. I have a problem. My timer is not work and give this warning: And my code: healKac = guiGridListGetItemData ( NPCGrid, row, 1 ) makeHealTime = guiGridListGetItemData ( NPCGrid, row, 3 ) makeHealT = setTimer( function() -- Line 280 local health = getElementHealth(localPlayer) if (health and health < 200) then setElementHealth(localPlayer,health+healKac) end end, makeHealTime, 0) Where is the problem?
-
It's solved. Thank you TAPL.
-
Oh! Sorry for my stupid mistake. Im fixed it...
-
Hi guys. Im work on the a new system. Im get the this error: And my code: addEventHandler("onClientMouseEnter", getRootElement(), function(aX, aY) if source == buff30Image then addEventHandler("onClientRender", root, showTimeDx) guiSetAlpha(buff30Image, 1.00) end end) addEventHandler("onClientMouseLeave", getRootElement(), function(aX, aY) if source == buff30Image then removeEventHandler("onClientRender", root, showTimeDx) guiSetAlpha(buff30Image, 0.80) end end) function sayac() -- It's use "onClientRender" event. if not lasttick then lasttick = getTickCount() end local row, col = guiGridListGetSelectedItem(bufferGrid) local itemTimer = guiGridListGetItemData(bufferGrid, row, 2) local itemTime = itemTimer*1000 tick = getTickCount() end function showTimeDx() dxDrawText ( itemTime - (tick - lasttick), 44, sy - 41, sx, sy, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) -- Line 82 end How to fix it?
-
For Example: ________________________________________________________________________________________________________ It's my simple code: vehUpgradeWindow = guiCreateWindow(447, 214, 303, 380, "Araç Yükseltmesi", false) guiWindowSetSizable(vehUpgradeWindow, false) guiSetVisible(vehUpgradeWindow, false) vehUpgradeGrid = guiCreateGridList(10, 26, 283, 317, false, vehUpgradeWindow) guiGridListAddColumn(vehUpgradeGrid, "Name", 0.6) guiGridListAddColumn(vehUpgradeGrid, "Installed", 0.33) vehUpgradeAddRemove = guiCreateButton(10, 353, 67, 19, "Ekle", false, vehUpgradeWindow) vehUpgradeClose = guiCreateButton(226, 353, 67, 19, "Kapat", false, vehUpgradeWindow) guiGridListSetSortingEnabled ( vehUpgradeGrid, false ) addEventHandler("onClientVehicleEnter", getRootElement(), function( thePlayer, seat ) if thePlayer == gMe then local vehicle = getPedOccupiedVehicle(gMe) for i,upgrade in ipairs(getVehicleCompatibleUpgrades(vehicle)) do local row = guiGridListAddRow( vehUpgradeGrid ) guiGridListSetItemText ( vehUpgradeGrid, row, 1, tostring(upgrade), false, false ) guiGridListSetItemData ( vehUpgradeGrid, row, 1, tostring(upgrade) ) end end end) addEventHandler("onClientVehicleStartExit", getRootElement(), function( player, seat, door ) if player == gMe then guiGridListClear(vehUpgradeGrid) end end) addEventHandler("onClientGUIClick", guiRoot, function() if source == upgradeVehicleButton then local vehicle = getPedOccupiedVehicle(gMe) if guiGetVisible(vehUpgradeWindow) == false then if vehicle then guiSetVisible(vehUpgradeWindow, true) end elseif guiGetVisible(vehUpgradeWindow) == true then guiSetVisible(vehUpgradeWindow, false) triggerServerEvent("vehUpgradeWindowAyar", localPlayer) end elseif source == vehUpgradeClose then guiSetVisible(vehUpgradeWindow, false) triggerServerEvent("vehUpgradeWindowAyar", localPlayer) end end) addEventHandler( "onClientGUIDoubleClick", gRoot, function() if source == vehUpgradeGrid then local vehicle = getPedOccupiedVehicle(gMe) if not vehicle then return end local row, col = guiGridListGetSelectedItem ( vehUpgradeGrid ) if ( row and col and row ~= -1 and col ~= -1 ) then local vehUpgrade = guiGridListGetItemData ( vehUpgradeGrid, row, 1 ) addVehicleUpgrade ( vehicle, vehUpgrade ) end end end)
-
Hi guys. Im work on the vehicle upgrade. I want to reserve upgrades. [spoiler, Wheels,...] I've made several attempts but has failed. How to do it?
-
Hi guys. I need a police maverick lights code. What is this code? Thnx
-
No offense, Thank you tosfera. It's solved
-
local row = guiGridListAddRow ( vehicleTypeGrid ) guiGridListSetItemText ( vehicleTypeGrid, row, 1, "Aircraft", false, false ) guiGridListSetItemText ( vehicleTypeGrid, row, 2, "Bikes", false, false ) guiGridListSetItemText ( vehicleTypeGrid, row, 3, "Boats", false, false ) guiGridListSetItemText ( vehicleTypeGrid, row, 4, "Cars", false, false ) guiGridListSetItemText ( vehicleTypeGrid, row, 5, "Emergency", false, false ) Im try this but it's not work... It's a only add 1 row.
-
Yes. It's create random row. But I want to do according to the table row.
-
Hi guys. Im work on the new freeroam panel. Gridlist as in table row not doing. It's make random row. And my code: Code Removed How to fix it?
-
Huh? Why So is there anything else I can do this function? Im find the this code on the pastebin. But i can't understand this. What does this code? addEventHandler( "onResourceStart", resourceRoot, function() local aWeaponSkills = { [ 30 ] = { "poor:1", "poor:2", "poor:3" }; [ 31 ] = { "poor:1" }; }; local WeaponsStats = { [ 31 ] = { [ "poor:1" ] = - { { "damage", 100 }; { "accuracy", 0.9 }; }; }; [ 30 ] = { [ "poor:1" ] = { { "damage", 10 }; { "accuracy", 0.1 }; { "maximum_clip_amm", 30 }; }; [ "poor:2" ] = { { "damage", 15 }; { "accuracy", 0.3 }; { "maximum_clip_amm", 30 }; }; [ "poor:3" ] = { { "damage", 50 }; { "accuracy", 0.4 }; { "maximum_clip_amm", 45 }; }; }; }; for iID, aSkills in ipairs( aWeaponSkills ) do for i, v in ipairs( aSkills ) do addWeaponSkill( iID, v ); end end for iID, aSkills in pairs( WeaponsStats ) do for sLvl, aSettins in pairs( aSkills ) do for i, v in ipairs( aSettins ) do setWeaponProperty( iID, sLvl, unpack( v ) ); end end end end );
-
Hi guys. How to use setWeaponProperty function for per player? Thanks...
-
Thank you bro. It's solved...
-
Hi guys. Im work on the new freeroam panel and gamemode. But i have a problem on the create vehicle. When the player quit the game, vehicles isn't destroyed and it's give this error: My code: Code Removed How to fix it?
-
@Buffalo Zombiehellparty's coming back?
