-
Posts
1,058 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Saml1er
-
Element is element. Pickups are also elements. Their collision is disabled. They are actually food objects.
-
I'd suggest the same.
-
Nice job tho. : P
-
Always make sure you optimize your code. local function licenta (p) local playeraccount = getPlayerAccount ( p ) setAccountData ( playeraccount, "Licenta", "licentiat" ) takePlayerMoney ( p, 500) end addEvent( "onBuy", true ) addEventHandler( "onBuy", resourceRoot, licenta ) local function trigger (b,s) if b == "left" and s == "up" then -- if you don't add this then triggerServerEvent will be called 2 times triggerServerEvent ( "onBuy", resourceRoot, localPlayer ) end end addEventHandler ( "onClientGUIClick", buybtn, trigger, false )
-
Just add these lines at the end of your code ( can be any lua file of the same resource but make sure its server sided). local dc = { } local t = getElementsByType ("player") for i=1, #t do dc[getPlayerSerial(t[i])] = true loadAllVehs (t[i]) loadd ( t[i]) end addEventHandler("onPlayerJoin",root, function () if dc[getPlayerSerial(source)] then return end dc[getPlayerSerial(source)] = true loadAllVehs(source) loadd (source) end)
-
Agar ye pata hota toh ab tak ye log pakde bhi ja chuke hotay.
-
Khair, ye log talibans toh nahi hain. Taliban ka naam ye log use ker rahe hain. Taliban toh bohat achay log hotay hain. Ye log sirf unka naam kharab ker rahe hain.
-
Oh please. I downloaded this script from community 1 year ago. I'm talking about the first userpanel.
-
Asalam Alaykum! Yaar 141 bachay peshawar mein maray gai.. Mera bohat dil dhooka aur shadeed afsos huva. Aap logo ka kya khyal hain?
-
i didn't call the json module the json.lua calls the module PLEASE I CAN'T FOUND THE MODULE give me the url and NOT GOOGLE SEARCH Dude. It was the first link. If you don't understand this then educate yourself.
-
Now all you have to do is to convert json string into json table using json decode function from the module. You don't to call module function...
-
it's says Attempt to call global 'Module' (a nil value) Which module did you add? O_o Did you define the script in meta?
-
I believe MTA provides you enough functions and saved you from "raw coding" but hey you're missing something. MTA is also using libraries anyway I don't find a reason here to argue. You guys are free to post your opinions
-
Remember, google is your friend.
-
Oh sorry. I was on my mobile phone, I forgot to edit those functions. Fixed, thank you. : )
-
You can do that without interpolate functions. Basic mathematical knowledge required. ; D local h, stopAnimAt = 0.5, 0 -- let's say we want maximum height 0.5 and stop animation at 0 local move, win = 0, guiCreateWindow (0.4, 0.4,0.7,h, "test window", true) -- relative sizes addEventHandler("onClientRender",root, function ( ) if h <= stopAnimAt then --[[ h = stopAnimAt local wid, _ = guiGetSize ( win , true ) guiSetSize ( win, wid, h, true )]] -- if window does not fully scroll up then remove brackets and use this else h = h - 0.01 -- subtracting will scroll the window up local wid, _ = guiGetSize ( win , true ) guiSetSize ( win, wid, h, true ) end end )
-
Yo help me Please ! i added Jsons Module what now ? Now use the json decode function to convert the json string into a table.
-
True dat... viewtopic.php?f=108&t=73630&hilit=selling Ahaan. Well that's that old. Bons changed his mind because he wanted to be a free scripting bot working 24/7 wasting his time. I sometimes feel like killing this guy @Bons: Every software is not for free. This is a script but its no different from a software. Its not a shame to ask for money for your work. Some guys get like only 1 hour free in a day and they script slowly. Sooner or later they finish a script. Now should they publish it? Hell no. Everyone is not free or way too kind like you. Sometimes people copy paste your code -> edit it -> Make minor changes -> compile it ( some may not ) -> and finally claim that they made it from scratch. That's the worst thing I hate about people. You never know. Some guys might have already published your script in different communities and claimed that they made it.
-
Hello. I'll make a dx user panel only for 12 euros. I already have a mgm script which I wrote from scratch. I have also added a zombies gamemode to it. It also has zombie scripts, spawn panel, car lock, car spawning for teams and much more. The script is a little bit introduced here: linkin.hol.es If you really are interested then we will make the best ps design for you for free but you have to pay for the script since I had to work hard on it. You can contact me @skype: Saml1er
-
Nope. You don't need to use any php script. Just use fetchRemote and request JSONC format. MTA json functions might not work properly. You need to use one of JSON modules. There are tons of jsons modules available for lua, google it.
-
I made this script from scratch. It doesn't matter if they have it. Many servers use the same admin panel, don't they? Also there's no such thing like "copying" because if you made something without looking at someone's code then it's not copying/stealing. I'm just saying this because some guys call it stealing.
-
Read the title "3D dx help lines for servers using race gamemode".
-
Thanks for the feedback.
-
How it works? When a map starts all players 3D coordinates will be recorded and when a player gets TT 1 then his movements will be saved. When that map starts again then those dx lines will be rendered. If you think those 3D lines are in way then don't worry I can make those lines more thicker and you'll just barely see them. http://www.dailymotion.com/video/x2bt2fu_gta-sa-2014-12-6-14-26-8-622_videogames Start from 2:10, Skip my boring gameplay NOTE: Sorry for bad quality and my chatbox. I failed many times making this video because I was lagging hard with gamebooster ( I couldn't find any other good recording tool )... P.S Selling it for 7.5 euros but don't hesitate to contact me ( @ skype: Saml1er ), you can get it for even cheap price.
-
You're still calling it 15 times so this won't make a big difference.