Leaderboard
Popular Content
Showing content with the highest reputation on 15/12/17 in all areas
-
Hello, I'm simple scripter lua mtasa and designer .Enjoy my first tutorial (any question reply it or suggestion, i'll do a list of tutorials ) Variables(type): *Global variables: means the variable will be avaible on hole of the script for example: Code: function test() name = 123 jake = "me" end function test() name = 123 jake = "me" end function test1() print(name)--- returns 123 print(jake)------returns me end the ----- it's a advert can't cause anything to the code print it's for to output a string or else. or (because as global variable it can be in the function or out.) Code: name = 123 jake = "me" functio test() ------your code end *Local variables: it will be avaible only on your function attached to. Code: function test() local name = 123 local jake = "me" end and if i do function test() local name = 123 local jake = "me" end function testt() print(jake) ----- return nil end If you saw Code: jake = "me" "me" called a string . *Key words and break do else elseif end false for if in local nil not repeat then return true or until while function *Function : The function is the way that describe your goal by a CODE . it likes Code: function NameOfYourFunction(arguments) -----YOUR CODE end The function end with "end" if you forgot it , your code wrong. *nil : it means nothing *boolean: it return true or false value *if : Is for to state "if" it ends with "end" as for function for ex: local var1=1 local var2=2 function name() if (var1+var2) == 3 then -----do somthing else -----do something else end end means if 2+1 = 3 then insert your code BUT if 2+1 ~= 3 then insert your code (xd) ~= means not equal == equal *operators: it's what your learned at school : (+,-,/,*,^) (I'll update it soon)3 points
-
Hello i am rinke, this time I mapped the ghetto in the location of Jefferson. I am a Spanish speaking guy who loves mapping, I hope you like it as I liked it.2 points
-
FEATURES Compatible with all gamemodes. A monitor that allows the user to view the drone's camera. First person / Third person drone monitor. /drone - starts drone /droned - stops drone MEDIA https://community.multitheftauto.com/index.php?p=resources&s=details&id=130561 point
-
السلام عليكم و رحمه الله و بركاته بعد سحبه كبيره شويه عن البرمجه بسبب الدراسه و الخ... اقدم لكم اليوم شي من افضل الأشياء الي سويتها في مسيرتي في اللعبه DX-Gridlist | جريد ليست دي اكس طبعا الكل يعرفو مثل ال GUI بس بيكون بي تقنيه DirectX (DX) بالظبط ما في شي ينقص عنو GUI الجريد ليست من ال تقدر تسوي الأشياء كالتالي : 1- dxCreateGridlist 2 - dxGridlistAddColumn 3 - dxGridlistAddRow 4 - dxGridlistSetItemText 5 - dxGridlistSetItemData 6 - dxGridlistSetItemColor 7 - dxGridlistClear 8 - dxGridlistGetItemText 9 - dxGridlistGetItemData 10 - dxGridlistGetItemColor فيديو للجريد ليست : الجريد ليست حاليا للعرض فقط اذا كترت الطلبات عليه ان شاء الله انزلو قريبا1 point
-
1 point
-
it works for me ( i don't speak english ) function join() addEventHandler("onClientKey", root, disableKeys) end addEventHandler("onClientPlayerJoin", root, join) function disableKeys(btn) if ( btn == "F1" or btn == "F2" or btn == "F3" ) then cancelEvent() end end -- or function disableKeys(btn) cancelEvent() end1 point
-
Yeah, that will never work with 'guiSetInputMode'. You'll need to do something like if getElementData(localPlayer, "LoggedIn") == true then --open panel end client-side and something like this function onPlayerJoin() setElementData(source, "LoggedIn", false) end addEventHandler("onPlayerJoin", root, onPlayerJoin) function onPlayerLogin() setElementData(source, "LoggedIn", true) end addEventHandler("onPlayerLogin", root, onPlayerLogin) server-side. That's what I do and it works for me. Good luck1 point
-
1 point
-
ما رايك ان اصمم لكم سكربت تحرير نوافذ وملحقات dgs? وش رايكم اتوقع بيفدكم واجد بيكون زي guieditor1 point
-
1 point
-
1 point
-
Good Job. And don't forget to tell beginners how to deal with errors and warnings.1 point
-
Since the T-Virus cure was found, some samples were sent to each state to be distributed in hospitals in order to cure as many people as possible. However, Umbrella Corporation did not agree with the decision, so they took the cure and hid it somewhere in each state. The Government was notified about the issue, so they decided to send a trained soldier to give a hand and get the cure back for each state. In this story, you will be the soldier. Do not fail and get the cure back for the San Andreas state. THE SERVER STILL BEING UNDER DEVELOPMENT ( You will find the progress at the bottom ) Once you get into the server, you will have to register into the system and log in. After that, you will be able to create a character ( you can create three per account ). Complete the quests, level your character up, and be the best soldier. It's in your hands. I'm not gonna give you information about what's ingame because you'll have to find it out by yourself. However, I give you some pics here: Improving a weapon Zombies SOME INFORMATION: - Different kind of mobs ( zombies ) will be available - Vehicle system - Items & inventory system - Level system attached to weapons/armors - 3D Scoreboard - Drop system attached to zombies - Skill system ( Speed, Invisibility, Jump ) - Quest system - Shop system - Weapon improvment system DEVELOPMENT PROGRESS SERVER: 70 / 100 MAP: 0 / 100 WEBSITE: 0 / 100 THIS POST IS GOING TO BE UPDATED ONCE THE SERVER DEVELOPMENT IS FINISHED1 point
-
It would be good if you indent your codes: local var1=1 local var2=2 function name() if (var1+var2) == 3 then -----do somthing else -----do something else end end function test() local name = 123 local jake = "me" end function testt() print(jake) ----- return nil end It is easier to read.1 point
-
Seems fine for now. And avoided one trigger, thanks for the tips guys1 point
-
1 point
-
1 point
-
Yea I seen the increase of saeg community its good to see them and the dev r better in saeg they have best ideas1 point
-
1 point
-
Let me get it straight. You want to check if your vehicle has its override lights on, but you only check it when you press "L", right? In that case just use: -- Everything here should be onClientRender local lights function () local vehicle = getPedOccupiedVehicle (localPlayer) if vehicle then --Is localPlayer in vehicle? lights = getVehicleOverrideLights (vehicle) --Here you get the state of the overridelights else lights = false --if there is no vehicle, false end end0 points
-
@TorNix~|nR you want to disable chatbox binds (made with /bind + say hi for example) or what? Because if you see what 'guiSetInputMode' does on it's wiki, it's not that.0 points
-
0 points
-
0 points