
karlis
Members-
Posts
1,314 -
Joined
-
Last visited
Everything posted by karlis
-
read the description of that res. jobs: https://community.multitheftauto.com/index.php?p= ... ls&id=2484
-
know its solved, but i believe this is more of a solution(as rotation changes the axis direction) function calculateOffsets(slaveElement, masterElement) local px, py, pz = getElementPosition(slaveElement) local vx, vy, vz = getElementPosition(masterElement) local sx = px - vx local sy = py - vy local sz = pz - vz local rotpX, rotpY, rotpZ = getElementRotation(slaveElement) local rotvX,rotvY,rotvZ = getElementRotation(masterElement) local t = math.rad(rotvX) local p = math.rad(rotvY) local f = math.rad(rotvZ) local ct = math.cos(t) local st = math.sin(t) local cp = math.cos(p) local sp = math.sin(p) local cf = math.cos(f) local sf = math.sin(f) local z = ct*cp*sz + (sf*st*cp + cf*sp)*sx + (-cf*st*cp + sf*sp)*sy local x = -ct*sp*sz + (-sf*st*sp + cf*cp)*sx + (cf*st*sp + sf*cp)*sy local y = st*sz - sf*ct*sx + cf*ct*sy local rotX = rotpX - rotvX local rotY = rotpY - rotvY local rotZ = rotpZ - rotvZ return x, y, z, rotx, roty, rotz end note:taken from old glue resource
-
1) what is Jops? 2) https://community.multitheftauto.com/index.php?p= ... ils&id=844 (no mouselook avaible yet tough)
-
start freeroam, write /bind mouse_1 down au 1010 and keep spamming it. or modify shader_tex_names that it doesn't actually delete it from list.
-
i need to use tables to get current, backuped(in case of cancelation), default and probably server override options. but now i think i figured to just use default value table as refference what to take from _G for current settings, therefore leaving no need for this. still i'd like to know what i did wrong so next time i can do it.
-
__index is called when you get variable, __newindex, when you set it.
-
hey there, i just tried to use metatables for the first time, and i failed. it just doesn't call the __newindex function. what i want to do is when settings table is changed also global variable is changed, but it doesn't work. .. settings=getSettings() --that is valid table setmetatable(settings,{ __newindex=function(_,key,value) _G[key]=value end }) .. PS:yes, i know it would be better just calling the tables, but as code already have some of the variables called 150times, and its a long mess already, i don't want to do that just to save KB or two.
-
what stops you from doing it?
-
yep, it just was proven. he wouldn't be that upset otherwise.
-
np, im here to help
-
1.2 released main new improvement is the settings, now you can change pos and size of text/radio/hud/radar by dragging/resizing their windows.Press F3 to open settings view.
-
you need to define the lamp for each vehicle lamp1={} lamp1[vehicle]=... and so on also, remove "local state= ..." line its not needed and change "elseif ..." line to just "else" and whats the point of getting x,y,z of player?
-
is getTickStart defined?
-
setControlState looks like we have 4th mojrm.
-
i think he means that he have it in both folders, with and without [], as in syntax descriptions [] is optional
-
+1 the kid
-
Suggestion for forums! [CLOSE IT PLEASE]
karlis replied to 12p's topic in Site/Forum/Discord/Mantis/Wiki related
+1 for those who don't get what spoiler means it is like , but with normal font/background, just it is closed by default, and with openable with a button. -
i don't think its wise to advertise(post ips) sa-mp servers here. you know, in samp forums you would be banned instantly, here not that bad, but still dont do it.
-
i think hes talking about samp versions of these servers
-
just for better finding of something, and so if something doesn't work you can turn it off, and restarting something wont cause whole reset. its really recommended to at least use few groups( interface, vehicle, player, login, etc systems, utilities)so you don't get lost. also you have to separate gamemodes from maps, to swap maps w/o stopping gamemode.
-
don't just set text to zero, but remove the onClientRender event handler. it is extremely inefficent when it comes to leaving dx drawing when its not needed.
-
try stage resource, it has all the camera options possible.
-
valhalla gaming should have much more then 30 if you enjoy rp you should try that server, you will be amazed no matter how many players
-
scale is changeable, and it is scaled, but i guess i made the scale change too little anyway of course its your choice settings are easily changeable in clien.lua btw
-
oh, ok, i made 1byte overshoot