Anubhav
Members-
Posts
2,277 -
Joined
-
Last visited
Everything posted by Anubhav
-
Why is that needed? So you can leak my script?
-
Guyz, its telling me I have triggered a client event and its not added. But I HAVE ADDED. CLIENT: function createJob(jobName,teamName,pedID,desc,marker,skins) addEventHandler("onClientMarkerHit", marker, showJobWindow) triggerEvent('showMeWindow', root, jobName, desc, teamName, skins ) end addEvent("createJob", true) addEventHandler("createJob", root, createJob) SERVER: function addJob(x,y,z,jobName,teamName,pedID,desc,skins,occupation) marker = createMarker(x,y,z,"cylinder") ped = createPed(pedID, x,y,z ) triggerClientEvent(root,"createJob",root,jobName,teamName,pedID,desc,marker,skins,occupation) end
-
Whoops, I forgot everything lol.
-
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, 50) 3rd argument.. Your intervel of ms should not go down of 50.
-
1. Not sure what you're asking. 2. setTimer( setElementHealth, 3000, 1, localPlayer, getElementHealth(localPlayer) - 5 )
-
It is in same resource.. So I should use triggerEvent for other resources and for in this resource use those only? Give me example please ._.
-
After a long time, I asked a question. Ok so, If I have create window in window.lua then can I send it to another client file example: send the window to functions.lua? I have seen some scripts, but compiled ones.
-
This is not a place to post, You weren't owner, You were hoster, I din't messed up anything. You never asked me to join your server. You hosted my server. Now stop lieing dude.. You have broken my big trust on you. I din't messed up anything. How can someone kick founder? Not a right place.
-
mtasa://62.210.74.162:27415 That was my server, but someone named Saeed, Somehow he kicked me from staff by doing cheating. I deleted the server and told the hoster Slammer, he told that Saeed is owner. Thats fully against.
-
After long time I've seen you. Nice scripts btw. Keep doing it!
-
Fuck ye! AWESOME! Gonna use Argentina theme. ARGENTINA FTW <3
-
SQL? local ironMined = {} local con = dbConnect("sqlite","database.db") function createTables() dbExec(con,"CREATE TABLE IF NOT EXISTS ironMined(accName,ironMined)") end function doIronMine() ....After finishing iron mining..... local iron = howMuchIronYouMined? local player = getPlayerAccount( source ) dbExec(con,"INSERT INTRO ironMined accName=? ironMined", player, iron) end function createSavedData(prevAccount,currectAccount,autologin) local query = dbQuery(con,"SELECT * FROM con WHERE accName=?",currentAccount) local poll = dbPoll(query,-1) if not poll then return end if poll and query then local answer = poll[1] setElementData( source, "jobs.ironMined", tostring(answer)) end end addEventHandler("onPlayerLogin", root, createSavedData)
-
https://community.multitheftauto.com/in ... ls&id=9579 https://community.multitheftauto.com/in ... ls&id=9580 By mistake I did it. DONE
-
Haha. I only added one image in the forum ( I found that from google LOL ). I equal in both of it, I was thinking of making a software of forums like SMF. But I failed, Maybe I will try again?
-
Make sure resource "race_toptimes" is running.
-
-- You can add more locations -- {x, y, z} local mbag = { {2422.3,-2261.6,16}, {1758.9,-2767.9,1.7}, {2493.3,-951.8,82.25}, {815.7,-1108.2,25.8}, {390.9,-2054.3,13.8}, {-719.05,-1938.8,8.35}, {-625.7,-2249.5,23.05}, {-1812.3,-168.5,18.2}, {-2659.5,1528.05,54.79}, {-1733.76,194.75,3.6}, {-2535.5,40.15,8.5}, {-1804.85,558.45,35.15}, {-752.6,-131.6,65.8}, } function createBag() local random = math.random ( #mbag ) local x, y, z = mbag[random][1], mbag[random][2], mbag[random][3] bag = createPickup( x, y, z, 3, 1550 ) setElementCollisionsEnabled( bag, false ) bl = createBlipAttachedTo(bag,37) outputChatBox( "Rahasäkki on spawnannut!", root, 0, 255, 0 ) end addEventHandler("onResourceStart", resourceRoot,createBag) addEventHandler("onPickupHit",root, function ( player ) if ( source ~= bag ) then return end if ( isPedInVehicle( player ) ) then return end destroyElement( bag ) destroyElement( bl ) randomMoney = math.random ( 3000, 5000 ) givePlayerMoney(player,randomMoney) setPedArmor ( player, 100 ) local armor = getPedArmor( player ) outputChatBox("You get " .. tostring(randomMoney) .."$ and ".. tostring(armor) .."% Armor", player, 0, 250, 0) setTimer( createBag, 90000, 1 ) end )