-
Posts
90 -
Joined
-
Last visited
Everything posted by SheriFF
-
function showPanel(thePlayer) triggerClientEvent(thePlayer, "opencho", getRootElement()) end function onResStart() for i, player in pairs( getElementsByType( "player" ) ) do local accountname = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user." .. accountname, aclGetGroup("CHOQUE")) then bindKey(player, "F4", "down", showPanel) end end end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), onResStart) function player_onLogin( _, accountname ) if isObjectInACLGroup("user." .. accountname, aclGetGroup("CHOQUE")) then bindKey(source, "F4", "down", showPanel) end end addEventHandler("onPlayerLogin", getRootElement(), player_onLogin ) function cleanAll(player) for index, player in pairs(getElementsByType("player")) do unbindKey(player, "F4", "down", showPanel) end end addEventHandler("onResourceStop", getResourceRootElement(getThisResource()), cleanAll) Any errors in debug?
-
I think there's a walking style where the ped holds his hands in front just like he carryes a box( not sure tho if it's a walking style or bone attach ). I think you should try this function with every walking style : setPedWalkingStyle
-
Sick idea tho. I agree with this suggestion
-
I think is a bug because, when i set interior to 0, all the models are deleted but, when i set the interior to i.e 1 only the objects in interior 1 are deleted.Please, i need help! Second, the script doesn't remove these bushes
-
I managed to fix the problem by myself. Here is the new code lods = { [ 12855 ] = 13250, [ 3443 ] = 3548 } function map_load() --irelevant code removed setTimer( LODs_load, 4000, 1 )--this is the thing that made this script work ( setting the function to start 4s after the map load ) end addEventHandler( "onResourceStart", getRootElement(), map_load ) function LODs_load() for index, value in pairs ( getElementsByType( "object" ) ) do if ( lods[ getElementModel( value ) ] ) then local x, y, z = getElementPosition( value ) local rX, rY, rZ = getElementRotation( value ) result = setLowLODElement( value, createObject( lods[ getElementModel( value ) ], x, y, z , rX, rY, rZ, true ) ) outputDebugString( tostring( result ) ) end end end
-
Hello! I tried to assign a lod to an object ( both the model and the lod are custom models ) . My problem is that when the object appears the lod doesn't dissapear as it should /debugscript 3 : empty Code ( Server sided ) lods = { [ 12855 ] = 13250 --[ object id ] = corresponding lod id } function map_load() --irelevant code removed LODs_load() end addEventHandler( "onResourceStart", getRootElement(), map_load ) function LODs_load() for index, value in pairs ( getElementsByType( "object" ) ) do for i, v in pairs ( lods ) do if ( lods[ getElementModel( value ) ] ) then local x, y, z = getElementPosition( value ) local rX, rY, rZ = getElementRotation( value ) setLowLODElement( value, createObject( lods[ getElementModel( value ) ], x, y, z , rX, rY, rZ, true ) ) end end end end lod model still there:
-
Hello! I am working at my own custom map and in order to do this i need to delete the default GTA SA map. For an unknown reason this little script( server side ) : for i=550,20000 do removeWorldModel(i,10000,0,0,0,0) --Here the interior is set to 0 end deletes the interiors too and i don't want that to happen.
-
Replace if getAccountData(acc, "FirstLoginKek", false) then with if getAccountData(acc, "FirstLoginKek") == false then
-
help Help with vehicles textures( paid if needed )
SheriFF replied to SheriFF's topic in Third party GTA mods
bump -
Hello! I am developing my own server and i need some help with the custom vehicles textures. My server is based on Romania and i need someone to help me replace the emergency vehicles textures with the romanian ones. If it's a complicated thing and is needed i can pay More details : galea.stefan ( skype )
-
Error (The memory could not be read)
SheriFF replied to UraganX's topic in Probleme legate de MTA Client/Server
Intră aici și crează un topic nou ( în engleză ) care să conțină toate informațiile despre eroare precum și componentele PC-ului tău.În scurt timp ar trebui să-ți răspundă un membru din staff-ul mta-ului care te va ajuta mult mai bine decât oricine de aici -
Hello, i am searching for a water creator plugin/edf for map editor( i want to create water elements in map editor, not scripting them because it saves alot of time )
-
harta [WIP][SHOW] Ciucago - Un oraș nou în GTA
SheriFF replied to SheriFF's topic in Resurse, moduri și mape
Lucrez la un server de rp ( al meu ) cu totul făcut de la 0 -
harta [WIP][SHOW] Ciucago - Un oraș nou în GTA
SheriFF replied to SheriFF's topic in Resurse, moduri și mape
Pai nu pot edita post-ul, nu mai zice nimeni nimic si vin cu update-uri, n-am ce sa fac. Cred ca e si permisa chestia asta https://forum.multitheftauto.com/topic/92117-show-project-san-francisco-map/ Oricum, mersi ca mi-ai 'spart' combo-ul -
harta [WIP][SHOW] Ciucago - Un oraș nou în GTA
SheriFF replied to SheriFF's topic in Resurse, moduri și mape
-
harta [WIP][SHOW] Ciucago - Un oraș nou în GTA
SheriFF replied to SheriFF's topic in Resurse, moduri și mape
'Statuia' Orasului