-
Posts
605 -
Joined
-
Last visited
-
Days Won
1
Everything posted by JeViCo
-
Hello everyone! How can i make a vehicle turnin right or left without turning wheels? Is that possible?
-
wtf why this always happens to me? Sorry million times! I solved this problem. (Still a big fan of yours)
-
i think i didn't help you i'm sorry. This guy helped you at the beginning
-
Hello, @thisdp, could you help me? I used object_preview resource + DGS and got this It doesn't affect on my script at all but gives warnings anyway. Using setTimer does nothing(
-
i added missing '1,' I'm not sure that i can help a lot. If it didn't help at all, try to paste print or outputChatBox in your functions to detect broken parts of code
-
wtf by the way, you hide window and shot it again at line 15,16 guiSetVisible(window[1], false) guiSetVisible(window[2], true) maybe you want this? guiSetVisible(window[1], false) showCursor(false) Also, check script for errors (use '/debugscript 3' command)
-
Uhh minor problem. replace this math.random (#endmusic) with this math.random (1, #endmusic) @#Heshan||eUNLOCK||
-
solved. I didn't need any map
-
i didn't ask to give me one. I asked for help with finding a point where i can start off
-
Вопросы такого духа задавайте в следующий раз в разделе по скриптингу) Если у вас уже есть система id, то это в разы упрощает задачу. Для начала вам нужно как за какими данными закрепляются id ( ElementData ) Допустим getElementData(player,"id") даёт то самое заветное число, где player - нужный нам игрок. Тогда по этим данным сделаем следующий скрипт: local idname = "id" -- название данных function findById(id) -- получаем игрока по Id for _, v in ipairs(getElementsByType("player")) local curpl = getElementData(v,idname) if curpl then if tonumber(curpl) == id then return v break end end end return false end addCommandHandler("banid",function(pls,cmd,id,seconds,reason) if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( pls ) ), aclGetGroup ( "Admin" ) ) then local pl = findById(id) if not seconds then local seconds = 0 end if not reason then local reason = "Вы были забанены навсегда" if pl then banPlayer(pl,true,false,true,pls,reason,seconds) end end end) addCommandHandler("kickid",function(pls,cmd,id,reason) if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( pls ) ), aclGetGroup ( "Admin" ) ) then local pl = findById(id) if not reason then local reason = "Не веди себя плохо :3" if pl then kickPlayer(pl,pls,reason) end end end) addCommandHandler("muteid",function(pls,cmd,id) if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( pls ) ), aclGetGroup ( "Admin" ) ) then local pl = findById(id) if pl then if isPlayerMuted(pl) then setPlayerMuted(pl,false) else setPlayerMuted(pl,true) end end end end)
-
you can use setAccountData and getAccountData. It will be mush easier than databases for you :3
-
Hello everyone. How can i make mirror effect with shaders without perfomance reducing? For example i want to make mirrors in houses
-
Thanks. I tested it. It really helps a lot
-
Hello everyone! How can i protect my fetchremote function from possible bypasses? variable replacement etc?
-
i had limilar idea but i don't think that's a good idea with having more than 1k objects per map unit. Lesser object size = more of them per map unit = lesser perfomance.I really don't know what to do :с
-
nope example: this guy shared his terrain editor. I tested it and i can stand on the ground without any col files
-
Hello everyone! I saw on youtube video where people were creating collisions with different shapes. The main question - HOW ? Shaders?
-
i'm not That's why i asked. It can cause a lot of problems
-
[HELP] Remove Player From ElementData "faction" Police
JeViCo replied to Mσнαмα∂ Hєℓιѕн's topic in Scripting
Okay, i give up removeElementData only! -
try this addEventHandler("onClientElementStreamIn", getRootElement(), function() if getElementType(source) == "vehicle" then #getVehicleOccupants(source) == 0 then setElementFrozen(source,true) end end end) addEventHandler("onClientVehicleEnter", getRootElement(),function() if #getVehicleOccupants(source) == 1 then -- not sure right here (check if car empty) setElementFrozen(source,false) end end) @overlocus
-
removePedFromVehicle is a shared function. Make sure you put it server-side @Fabioxps
-
this guy replaced a variable vehicles to use it below. If i write like this setElementPosition(vehicles[i], 0, 0, 10) -- position setElementRotation(vehicles[i], 90, 180, 0, "ZYX") -- orientation/rotation it won't affect the result at all
-
ok come on, we've just finished talking about that