![](https://forum.multitheftauto.com/uploads/monthly_2018_02/bgimg..png.2e935deab1b1b4c3240520a864d18cfc.png)
Pirulax
Discord Moderators-
Posts
403 -
Joined
-
Last visited
Everything posted by Pirulax
-
@N3xt Edit: Posted this by accident, but I can't delete it.
-
Runcode uses loadstring too, so it should work. Run: outputConsole(inspect(_G)) And send the console log(It should print every single MTA function(if OOP is enabled then the classes too)).
-
Writing in English would be a helpful thing.
-
There is something wrong with the mod I suppose. Use another model and it should be fine.
-
No money for indentation?
-
That'll not work at all, it'll be at the same distance from the center of the screen for anyone(so anyone with a smaller screen than yours will not see it) Instead, on X just type a coordinate (0, 100, etc..) on Y do: SY- something. DxSetAspectRatioAdjustmentEnabled
-
I suppose this is a simple applied texture, so no need to set the value every time the texture updates because of the way it's done. Simply set the texture(with dxSetShaderValue) once and It'll work just fine. Added note on the wiki page too(DxSetShaderValue).
-
Wel, It should be there, because if I type in my console(while runcode is running) print(type(_G.source)) It print's that it's a userdata. So, I honestly dont know what's the problem.
-
Jesus Christ help me. This is the way you can do it. Anyways, why do you need to check C.-S. if a player is a donator or not?
-
you can't use simple "return" to return a value from a server-sided function to a client-side one, but instead you need to triggerClientEvent with a value. Actually, you don't even need those 'if' statements. addEvent("isPlayerDonator", true) addEventHandler("isPlayerDonator", root, function() triggerClientEvent("isPlayerDonatorAnswer", client, isObjectInACLGroup("user."..tostring(getAccountName(getPlayerAccount(plr))), aclGetGroup("Donator")) end)
-
try: print(_G.source)
-
If the cursor isn't showing the it's in the center of the screen. Where do you need the cursor position? If for some kind of object preview thing, or custom weapon system and such, we you can move around you can use: onClientCursorMove
- 3 replies
-
- getcursorposition
- cursor
-
(and 1 more)
Tagged with:
-
spawnPlayer createRadarArea createColRectangle killPed createExplosion setTimer addEventHandler("onClientRender", root, function() end )
-
What's the type of it then? Btw, you can do this also: addEventHandler("onClientMarkerHit", createMarker ( ... ), function ( ) end ) This way it only gets triggered when that marker gets streamed in
-
I can't understand anything from what you wrote down. You should write down what you want in ENGLISH not CHINGLISH(or any other modification of English).
-
No, he would't overwrite any of the classes, since class names are always UpperCamalCase, and not camalCase. But, as @IIYAMA (man, I writing ur name down is so f*cking hard) said, you be consistent in your code. And, because I see you put effort in your work, I'll write down a few tips: Be as consistent with your style ap(as possible) Variables are always camalCase, classes are UpperCamalCase, and constants are either UPPERCASE or UPPER_CASE, try to use tables with constants which have the same purpose(like so: local ANIM_SETTINGS = { speed = 1, eastingFunction = "Linear", } instead of: local ANIM_EASTING_FUNCTION = "Linear" local ANIM_SPEED = 1 Try to ask google first, and not someone else, because asking Google is much faster. Try to use OOP, instead of PP, because OOP is more readable. If you use OOP, then try to organize functions by classes, like. (So instead of: setWeather() have a class like: Weather.set()) Premature optimization is the root of all evil Use ternary operations as much as possible, because 'if' statements are ugly, and slow. (Sure, don't do what I do sometimes(I tend to rewrite a whole if statement to a ternary operation)) Try to be as descriptive ap in var names, so instead of TYPE(of animation) do ANIM_TYPE. Because TYPE can be really anything. I hope I helped you
-
I'd small models, because I suppose you have just a big model, and thats the whole map, which isn't a good idea, because this way the inbuilt streamer really does nothing.
-
Have you read section rules? Bc I dont think you did.
-
@Query If they are the top 4 in turkey, then turkey is a big shame. Nah, back on the topic: Maybe try using batch=1 In dbConnect's option list.