1
Modding Questions/Help Archives / Open Locked Door??
« on: January 14, 2014, 07:32:59 AM »
i have a simply question
How to open the locked door thought LUA?
thanks. . .
How to open the locked door thought LUA?
thanks. . .
News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..
Messages | Topics | Attachments
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
local l_1_0 = 270 -- X coords
local l_1_1 = -110 -- Y coords
local l_1_2 = 6.4000000953674 -- Z coords
PlayerSetHealth(200) -- gives the player 200 health
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2) -- teleports the player to the sidewalk outside the boys dorm
end
F_Davis = function()
Davis = PedCreateXYZ(99, 301.498993, -72.504997, 6.003000)
DavisBlip = AddBlipForChar(Davis, 6, 2, 2)
end
F_Davis2 = function()
if PlayerIsInTrigger(TRIGGER._TSCHOOL_FRONTGATE) then
PedRecruitAlly(gplayer, Davis)
end
end
MissionCleanup = function()
collectgarbage()
end -- end statement
main = function()
F_Davis() -- Function Call
F_Davis2()
end